From 3d3fee9a9975fe674cb2a8a622e7c6d251a27eb4 Mon Sep 17 00:00:00 2001 From: Manuel Guenther <manuel.guenther@idiap.ch> Date: Wed, 11 Feb 2015 21:49:25 +0100 Subject: [PATCH] And another memory leak fixed. --- bob/io/base/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/bob/io/base/main.cpp b/bob/io/base/main.cpp index 304fb59..5764f74 100644 --- a/bob/io/base/main.cpp +++ b/bob/io/base/main.cpp @@ -34,6 +34,7 @@ static PyObject* PyBobIo_Extensions(PyObject*) { for (auto it=table.begin(); it!=table.end(); ++it) { PyObject* pyvalue = make_object(it->second.c_str()); if (!pyvalue) return 0; + auto p_ = make_safe(pyvalue); if (PyDict_SetItemString(retval, it->first.c_str(), pyvalue) != 0) { return 0; } -- GitLab