diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-02 01:50:37 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-02 01:50:37 +0000 |
commit | 34eed6be0bb68b4d2f9d740c987a1ffcd1f2a2af (patch) | |
tree | 503a4823354760ffbf1485ac8a95b3aeb02d6b34 /Python/symtable.c | |
parent | 8dde7e1ea0d42f18b95acbeb41c99541eea378ff (diff) | |
download | cpython-34eed6be0bb68b4d2f9d740c987a1ffcd1f2a2af.tar.gz |
fix ref leaks
Diffstat (limited to 'Python/symtable.c')
-rw-r--r-- | Python/symtable.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index 59af9581d3..92b223276f 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -766,6 +766,7 @@ analyze_block(PySTEntryObject *ste, PyObject *bound, PyObject *free, if (PyNumber_InPlaceOr(newfree, allfree) < 0) goto error; + Py_DECREF(newfree); /* Check if any local variables must be converted to cell variables */ if (ste->ste_type == FunctionBlock && !analyze_cells(scopes, newfree, @@ -824,6 +825,7 @@ analyze_child_block(PySTEntryObject *entry, PyObject *bound, PyObject *free, if (!analyze_block(entry, temp_bound, temp_free, temp_global)) goto error; success = PyNumber_InPlaceOr(child_free, temp_free) >= 0; + Py_DECREF(child_free); success = 1; error: Py_XDECREF(temp_bound); |