diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-01-10 20:28:27 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-01-10 20:28:27 +0000 |
commit | 1704a004042629b856e7eb01d7ff3448843068a5 (patch) | |
tree | 1f3596f0ced6ae23a11cfa5ae63eb45ef60fd190 /lib/libalpm/trans.c | |
parent | 325d297739133de9f17619d9e030c6051748230a (diff) | |
download | pacman-1704a004042629b856e7eb01d7ff3448843068a5.tar.xz |
fixed a memory leak in the transaction cleanup code
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r-- | lib/libalpm/trans.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index fd0814e6..ed357ade 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -69,11 +69,12 @@ void trans_free(pmtrans_t *trans) FREESYNC(i->data); } FREELIST(trans->packages); - FREELIST(trans->skiplist); } else { FREELISTPKGS(trans->packages); } + FREELIST(trans->skiplist); + free(trans); } |