]> granicus.if.org Git - python/commitdiff
Fixed teensy memory leak, but doesn't help test_sax on Windows.
authorTim Peters <tim.peters@gmail.com>
Mon, 22 Jan 2001 03:20:55 +0000 (03:20 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 22 Jan 2001 03:20:55 +0000 (03:20 +0000)
Modules/pyexpat.c

index ff104f67f26e92e3ae70d06b5ac592ccd17e6b2c..011db63c832956ea7f3499e3f6750effe89d025b 100644 (file)
@@ -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;