Remember to free up resources from matchpathcon_init()
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 8 Aug 2008 10:06:28 +0000 (13:06 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 8 Aug 2008 10:06:28 +0000 (13:06 +0300)
lib/transaction.c

index 64b79f2..f075c9b 100644 (file)
@@ -1573,6 +1573,10 @@ int rpmtsRun(rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet)
        runTransScripts(ts, RPMTAG_POSTTRANS);
     }
 
+    if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_NOCONTEXTS)) {
+       matchpathcon_fini();
+    }
+
     rpmtsFreeLock(lock);
 
     /* FIX: ts->flList may be NULL */