diff options
author | jbj <devnull@localhost> | 2002-05-07 01:07:41 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-05-07 01:07:41 +0000 |
commit | b4c604e75c8550c5e63d5a6781e03ef40b78cca4 (patch) | |
tree | 7e1fec430df03ac1a21a4c706cfc6cd2e2c6ff10 /lib/rpmts.c | |
parent | e6ba507f771047db75773b166dc137b0a3e46ef7 (diff) | |
download | librpm-tizen-b4c604e75c8550c5e63d5a6781e03ef40b78cca4.tar.gz librpm-tizen-b4c604e75c8550c5e63d5a6781e03ef40b78cca4.tar.bz2 librpm-tizen-b4c604e75c8550c5e63d5a6781e03ef40b78cca4.zip |
- plug most install mode leaks.
CVS patchset: 5424
CVS date: 2002/05/07 01:07:41
Diffstat (limited to 'lib/rpmts.c')
-rw-r--r-- | lib/rpmts.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/rpmts.c b/lib/rpmts.c index ec4b44179..9f22248cb 100644 --- a/lib/rpmts.c +++ b/lib/rpmts.c @@ -309,6 +309,7 @@ void rpmtransClean(rpmTransactionSet ts) if (ts->sig != NULL) ts->sig = headerFreeData(ts->sig, ts->sigtype); + if (ts->dig != NULL) ts->dig = pgpFreeDig(ts->dig); } @@ -353,6 +354,11 @@ rpmTransactionSet rpmtransFree(rpmTransactionSet ts) ts->order = _free(ts->order); /*@=type =voidabstract @*/ + if (ts->pkpkt != NULL) + ts->pkpkt = _free(ts->pkpkt); + ts->pkpktlen = 0; + memset(ts->pksignid, 0, sizeof(ts->pksignid)); + /*@-nullstate@*/ /* FIX: partial annotations */ rpmtransClean(ts); /*@=nullstate@*/ @@ -428,6 +434,9 @@ rpmTransactionSet rpmtransCreateSet(rpmdb db, const char * rootDir) ts->probs = NULL; ts->sig = NULL; + ts->pkpkt = NULL; + ts->pkpktlen = 0; + memset(ts->pksignid, 0, sizeof(ts->pksignid)); ts->dig = NULL; ts->nrefs = 0; |