Fix refleaks in test_unicode and test_string related to the new format code.

Stop polluting namespace.
This commit is contained in:
Neal Norwitz 2007-08-27 07:24:17 +00:00
parent 2bad970293
commit 8a4eb298e2
4 changed files with 27 additions and 38 deletions

View file

@ -416,6 +416,7 @@ get_field_object(SubString *input, PyObject *args, PyObject *kwargs)
Py_DECREF(key);
goto error;
}
Py_DECREF(key);
Py_INCREF(obj);
} else {
/* look up in args */