]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Repair mis-application of Jeremy's patch. Thanks, Neal!
authorFred Drake <fdrake@acm.org>
Mon, 21 Jul 2003 17:22:43 +0000 (17:22 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 21 Jul 2003 17:22:43 +0000 (17:22 +0000)
Modules/pyexpat.c

index 5c3cf2594dab4a0f03f752eca3d27eac823c2e30..6c408938ffca11508cbc001bc9e8302cfc3a699b 100644 (file)
@@ -989,7 +989,7 @@ xmlparse_ParseFile(xmlparseobject *self, PyObject *args)
         int bytes_read;
         void *buf = XML_GetBuffer(self->itself, BUF_SIZE);
         if (buf == NULL) {
-            Py_DECREF(readmethod);
+            Py_XDECREF(readmethod);
             return PyErr_NoMemory();
         }