Fix memory leak from unused problem set
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 24 Feb 2009 08:10:38 +0000 (10:10 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 24 Feb 2009 08:10:38 +0000 (10:10 +0200)
- checkInstalledFiles() doesn't need ps for anything, this just caused
  a memleak due to refcount

lib/transaction.c

index 33195a4..45a9afd 100644 (file)
@@ -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) {