diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-03-15 17:05:26 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-03-15 17:05:26 +0100 |
| commit | dbfcddec5c85d306a97cdf73e539656c6d7225c5 (patch) | |
| tree | b021bcc1def0b887586c28a852f780741022eb9f | |
| parent | 4652428c6c964991ca1384c1a7f7d0e2a7028356 (diff) | |
| download | python-apt-dbfcddec5c85d306a97cdf73e539656c6d7225c5.tar.gz | |
* python/generic.cc:
- Fix a memory leak when using old attribute names.
| -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; } |
