diff options
Diffstat (limited to 'Modules/symtablemodule.c')
-rw-r--r-- | Modules/symtablemodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/symtablemodule.c b/Modules/symtablemodule.c index f605c22..909a404 100644 --- a/Modules/symtablemodule.c +++ b/Modules/symtablemodule.c @@ -31,7 +31,8 @@ symtable_symtable(PyObject *self, PyObject *args) st = Py_SymtableString(str, filename, start); if (st == NULL) return NULL; - t = Py_BuildValue("O", st->st_symbols); + t = st->st_symbols; + Py_INCREF(t); PyMem_Free((void *)st->st_future); PySymtable_Free(st); return t; |