From: Panu Matilainen Date: Fri, 8 Aug 2008 10:06:28 +0000 (+0300) Subject: Remember to free up resources from matchpathcon_init() X-Git-Tag: tznext/4.11.0.1.tizen20130304~3663 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=645184ac397a9e62ed3076648505b76b4551e794;p=tools%2Flibrpm-tizen.git Remember to free up resources from matchpathcon_init() --- diff --git a/lib/transaction.c b/lib/transaction.c index 64b79f2..f075c9b 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -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 */