INN commit: trunk/innd (python.c)

INN Commit Russ_Allbery at isc.org
Sat Jun 21 17:09:12 UTC 2008


    Date: Saturday, June 21, 2008 @ 10:09:11
  Author: iulius
Revision: 7883

Better be more careful when decrementing the reference count for these objects.

Modified:
  trunk/innd/python.c

----------+
 python.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: python.c
===================================================================
--- python.c	2008-06-21 08:13:36 UTC (rev 7882)
+++ python.c	2008-06-21 17:09:11 UTC (rev 7883)
@@ -201,7 +201,7 @@
 
     result = PyObject_CallFunction(mode_method, (char *) "sss",
 				   oldmode, newmode, reason);
-    Py_DECREF(result);
+    Py_XDECREF(result);
 }
 
 
@@ -622,7 +622,7 @@
 	return 0;
     }
 
-    Py_DECREF(PYFilterModule);
+    Py_XDECREF(PYFilterModule);
     PYFilterModule = newmodule;
 
     if (PYFilterObject == NULL) {



More information about the inn-committers mailing list