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 /python/generic.cc | |
| parent | 4652428c6c964991ca1384c1a7f7d0e2a7028356 (diff) | |
| download | python-apt-dbfcddec5c85d306a97cdf73e539656c6d7225c5.tar.gz | |
* python/generic.cc:
- Fix a memory leak when using old attribute names.
Diffstat (limited to 'python/generic.cc')
| -rw-r--r-- | python/generic.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |
