From: Panu Matilainen Date: Tue, 24 Feb 2009 08:10:38 +0000 (+0200) Subject: Fix memory leak from unused problem set X-Git-Tag: tznext/4.11.0.1.tizen20130304~3146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cce1b2444bd3f8c56dca01701b062f054f2832c;p=tools%2Flibrpm-tizen.git Fix memory leak from unused problem set - checkInstalledFiles() doesn't need ps for anything, this just caused a memleak due to refcount --- diff --git a/lib/transaction.c b/lib/transaction.c index 33195a4..45a9afd 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -670,7 +670,6 @@ rpmdbMatchIterator rpmFindBaseNamesInDB(rpmts ts) static void checkInstalledFiles(rpmts ts, fingerPrintCache fpc) { - rpmps ps; rpmte p; rpmfi fi; rpmfs fs; @@ -698,8 +697,6 @@ void checkInstalledFiles(rpmts ts, fingerPrintCache fpc) return; } - ps = rpmtsProblems(ts); - /* Loop over all packages from the rpmdb */ h = newheader = rpmdbNextIterator(mi); while (h != NULL) {