Commit 3d3fee9a authored by Manuel Günther's avatar Manuel Günther
Browse files

And another memory leak fixed.

parent fe3ad497
...@@ -34,6 +34,7 @@ static PyObject* PyBobIo_Extensions(PyObject*) { ...@@ -34,6 +34,7 @@ static PyObject* PyBobIo_Extensions(PyObject*) {
for (auto it=table.begin(); it!=table.end(); ++it) { for (auto it=table.begin(); it!=table.end(); ++it) {
PyObject* pyvalue = make_object(it->second.c_str()); PyObject* pyvalue = make_object(it->second.c_str());
if (!pyvalue) return 0; if (!pyvalue) return 0;
auto p_ = make_safe(pyvalue);
if (PyDict_SetItemString(retval, it->first.c_str(), pyvalue) != 0) { if (PyDict_SetItemString(retval, it->first.c_str(), pyvalue) != 0) {
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment