summaryrefslogtreecommitdiff
path: root/python/cache.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-12 12:46:34 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-12 12:46:34 +0200
commit5867a0fb2a56ebe6b42dd794ac70a51036f9159f (patch)
tree5791dc439de48f91df89fca880fa1d64b27df3dc /python/cache.cc
parent3c8959ed35b026ae57600c7f0b2ed531a98c7c0b (diff)
downloadpython-apt-5867a0fb2a56ebe6b42dd794ac70a51036f9159f.tar.gz
python/cache.cc: Py_DECREF the CacheFile, so it can be deleted.
Diffstat (limited to 'python/cache.cc')
-rw-r--r--python/cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/cache.cc b/python/cache.cc
index a571788f..a9c1a557 100644
--- a/python/cache.cc
+++ b/python/cache.cc
@@ -285,7 +285,7 @@ static PyObject *PkgCacheNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
CppOwnedPyObject_NEW<pkgCache *>(CacheFileObj,type,
(pkgCache *)(*Cache));
- //Py_DECREF(CacheFileObj);
+ Py_DECREF(CacheFileObj);
return CacheObj;
}