From dbfcddec5c85d306a97cdf73e539656c6d7225c5 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 15 Mar 2010 17:05:26 +0100 Subject: * python/generic.cc: - Fix a memory leak when using old attribute names. --- debian/changelog | 7 +++++++ python/generic.cc | 3 +++ 2 files changed, 10 insertions(+) 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 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; } -- cgit v1.2.3