diff options
Diffstat (limited to 'src/interpreter.c')
-rw-r--r-- | src/interpreter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interpreter.c b/src/interpreter.c index e68f1a2..619a157 100644 --- a/src/interpreter.c +++ b/src/interpreter.c @@ -69,7 +69,9 @@ void freeList(PyObjectList *list, int deref) PyObjectListElem *tmp = node; node = node->next; if (deref) + { Py_DECREF(tmp->object); + } free(tmp); } @@ -173,7 +175,9 @@ PyObject *executeFunction(const char *module, const char *funcName, const char* PyObject *val = PyObject_CallObject(func, args); if (args != NULL) + { Py_DECREF(args); + } return val; } |