From: Andreas Monzner Date: Sun, 1 Jan 2006 11:57:01 +0000 (+0000) Subject: fix memleak when call of convertFunc failes X-Git-Tag: 2.6.0~4567 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/c514ae52c43b9d90c482c63c35b466cc265fd8da fix memleak when call of convertFunc failes --- diff --git a/lib/dvb/epgcache.cpp b/lib/dvb/epgcache.cpp index 88fd677a..9c6bb1b1 100644 --- a/lib/dvb/epgcache.cpp +++ b/lib/dvb/epgcache.cpp @@ -1267,9 +1267,12 @@ PyObject *handleEvent(ePtr &ptr, PyObject *dest_list, char* argst PyObject *result = PyEval_CallObject(convertFunc, convertFuncArgs); if (result == NULL) { + if (service_name) + Py_DECREF(service_name); if (nowTime) Py_DECREF(nowTime); Py_DECREF(convertFuncArgs); + Py_DECREF(dest_list); return result; } PyList_Append(dest_list, result);