[Python-checkins] cpython (2.7): plug refleak
benjamin.peterson
python-checkins at python.org
Mon Jul 4 05:15:23 CEST 2011
http://hg.python.org/cpython/rev/a2944dd4ba7b
changeset: 71179:a2944dd4ba7b
branch: 2.7
parent: 71175:fc46acf7a645
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
@@ -514,6 +514,7 @@
}
else {
const char *module_str = PyString_AsString(*module);
+ Py_XDECREF(*filename);
if (module_str && strcmp(module_str, "__main__") == 0) {
PyObject *argv = PySys_GetObject("argv");
if (argv != NULL && PyList_Size(argv) > 0) {
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list