[Python-checkins] cpython: plug memory leak (closes #14325)

benjamin.peterson python-checkins at python.org
Fri Mar 16 19:26:09 CET 2012


http://hg.python.org/cpython/rev/d08f0f3ab23e
changeset:   75750:d08f0f3ab23e
user:        Benjamin Peterson <benjamin at python.org>
date:        Fri Mar 16 13:25:58 2012 -0500
summary:
  plug memory leak (closes #14325)

files:
  Python/getargs.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/getargs.c b/Python/getargs.c
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -1445,7 +1445,7 @@
                      len,
                      (len == 1) ? "" : "s",
                      nargs + nkeywords);
-        return 0;
+        return cleanreturn(0, &freelist);
     }
 
     /* convert tuple args and keyword args in same loop, using kwlist to drive process */

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list