diff --git a/PyCore/Embed/PyInterpreter.cpp b/PyCore/Embed/PyInterpreter.cpp index a8a977fc45405683a469e08ad43ac1fd296a4eaf..5442d66efb62945252c871a821f5104fedd513ae 100644 --- a/PyCore/Embed/PyInterpreter.cpp +++ b/PyCore/Embed/PyInterpreter.cpp @@ -655,9 +655,6 @@ std::vector<std::string> PyInterpreter::BornAgain::listOfFunctions(const std::st fn_names.push_back(func_name); } } - - Py_DecRef(pDict); - return fn_names; }