diff options
| -rw-r--r-- | debian/changelog | 7 | ||||
| -rw-r--r-- | python/generic.cc | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 31bdf042..84938005 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +python-apt (0.7.94.3) UNRELEASED; urgency=low + + * python/generic.cc: + - Fix a memory leak when using old attribute names. + + -- Julian Andres Klode <jak@debian.org> Mon, 15 Mar 2010 17:04:49 +0100 + python-apt (0.7.94.2) unstable; urgency=low * Revert 0.7.93.3 and just set APT::Architecture to i386 for diff --git a/python/generic.cc b/python/generic.cc index d3f6a6d6..84dda9aa 100644 --- a/python/generic.cc +++ b/python/generic.cc @@ -107,6 +107,9 @@ PyObject *_PyAptObject_getattro(PyObject *self, PyObject *attr) { PyErr_Restore(ptype, pvalue, ptraceback); } Py_DECREF(newattr); + Py_XDECREF(ptype); + Py_XDECREF(pvalue); + Py_XDECREF(ptraceback); } return value; } |
