summaryrefslogtreecommitdiffstats
path: root/rpmmodule
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-08-09 22:38:52 +0000
committerErik Troan <ewt@redhat.com>1999-08-09 22:38:52 +0000
commitb45eeef4f792d974f6759571e94f23fd4a25a3dc (patch)
treed0369c86b1b52aba6c220c34789f123fbc8bea63 /rpmmodule
parenta5abb572a8c219811a7014a74a208bde9a90aa42 (diff)
downloadanaconda-b45eeef4f792d974f6759571e94f23fd4a25a3dc.tar.gz
anaconda-b45eeef4f792d974f6759571e94f23fd4a25a3dc.tar.xz
anaconda-b45eeef4f792d974f6759571e94f23fd4a25a3dc.zip
added some harmless comments
Diffstat (limited to 'rpmmodule')
-rw-r--r--rpmmodule/rpmmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rpmmodule/rpmmodule.c b/rpmmodule/rpmmodule.c
index 5578483b2..852406f4d 100644
--- a/rpmmodule/rpmmodule.c
+++ b/rpmmodule/rpmmodule.c
@@ -798,6 +798,8 @@ static void rpmtransDealloc(PyObject * o) {
rpmtransFree(trans->ts);
if (trans->dbo) Py_DECREF(trans->dbo);
if (trans->scriptFd) fdClose(trans->scriptFd);
+ /* this will free the keyList, and decrement the ref count of all
+ the items on the list as well :-) */
Py_DECREF(trans->keyList);
}
@@ -849,6 +851,7 @@ static PyObject * rpmtransAdd(rpmtransObject * s, PyObject * args) {
else
rpmtransAddPackage(s->ts, h->h, NULL, key, isUpgrade, NULL);
+ /* This should increment the usage count for me */
if (key) PyList_Append(s->keyList, key);
Py_INCREF(Py_None);