From: Tim Peters Date: Mon, 22 Jan 2001 03:20:55 +0000 (+0000) Subject: Fixed teensy memory leak, but doesn't help test_sax on Windows. X-Git-Tag: v2.1a1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8157868583efd09f74e226ce35610775fe12f62;p=thirdparty%2FPython%2Fcpython.git Fixed teensy memory leak, but doesn't help test_sax on Windows. --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index ff104f67f26e..011db63c8329 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -98,6 +98,7 @@ conv_atts_using_string(XML_Char **atts) } if (PyDict_SetItemString(attrs_obj, (char*)*attrs_k, rv) < 0) { + Py_DECREF(rv); Py_DECREF(attrs_obj); attrs_obj = NULL; goto finally;