[Python-checkins] cpython (3.2): plug refleak
benjamin.peterson
python-checkins at python.org
Mon Jul 4 05:15:22 CEST 2011
http://hg.python.org/cpython/rev/f0382acebfe6
changeset: 71178:f0382acebfe6
branch: 3.2
parent: 71176:301c008dd58d
user: Benjamin Peterson <benjamin at python.org>
date: Sun Jul 03 22:18:34 2011 -0500
summary:
plug refleak
files:
Python/_warnings.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Python/_warnings.c b/Python/_warnings.c
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -517,6 +517,7 @@
}
else {
const char *module_str = _PyUnicode_AsString(*module);
+ Py_XDECREF(*filename);
if (module_str == NULL)
goto handle_error;
if (strcmp(module_str, "__main__") == 0) {
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list