diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-01-22 03:20:55 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-01-22 03:20:55 (GMT) |
commit | e8157868583efd09f74e226ce35610775fe12f62 (patch) | |
tree | 40d6a817f0f1aff485be14bb91b33e10e197af67 /Modules/pyexpat.c | |
parent | 54bac8e8c56ccaba13e8c44f3bb02046e4fa3d22 (diff) | |
download | cpython-e8157868583efd09f74e226ce35610775fe12f62.zip cpython-e8157868583efd09f74e226ce35610775fe12f62.tar.gz cpython-e8157868583efd09f74e226ce35610775fe12f62.tar.bz2 |
Fixed teensy memory leak, but doesn't help test_sax on Windows.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r-- | Modules/pyexpat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index ff104f6..011db63 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; |