Commit e8157868 authored by Tim Peters's avatar Tim Peters

Fixed teensy memory leak, but doesn't help test_sax on Windows.

parent 54bac8e8
...@@ -98,6 +98,7 @@ conv_atts_using_string(XML_Char **atts) ...@@ -98,6 +98,7 @@ conv_atts_using_string(XML_Char **atts)
} }
if (PyDict_SetItemString(attrs_obj, if (PyDict_SetItemString(attrs_obj,
(char*)*attrs_k, rv) < 0) { (char*)*attrs_k, rv) < 0) {
Py_DECREF(rv);
Py_DECREF(attrs_obj); Py_DECREF(attrs_obj);
attrs_obj = NULL; attrs_obj = NULL;
goto finally; goto finally;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment