X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/afc5eb78a27a7c41fffd81eadf7ac650cb6f2043..371e23c22dcec461ee3fbc8c989859cd08717b3d:/lib/base/nconfig.cpp diff --git a/lib/base/nconfig.cpp b/lib/base/nconfig.cpp index 31b0a36f..106558ac 100644 --- a/lib/base/nconfig.cpp +++ b/lib/base/nconfig.cpp @@ -25,6 +25,7 @@ RESULT ePythonConfigQuery::getConfigValue(const char *key, std::string &value) if (PyString_Check(pRet)) { value.assign(PyString_AS_STRING(pRet)); + Py_DECREF(pRet); return 0; } Py_DECREF(pRet);