summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/pkgmanager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pkgmanager.cc b/python/pkgmanager.cc
index cf19e6bf..05f033f3 100644
--- a/python/pkgmanager.cc
+++ b/python/pkgmanager.cc
@@ -191,7 +191,7 @@ class PyPkgManager : public pkgDPkgPM {
StatusFd));
}
virtual void Reset() {
- CppPyRef(PyObject_CallMethod(pyinst, "reset", NULL));
+ Py_XDECREF(PyObject_CallMethod(pyinst, "reset", NULL));
}
public: