From 1704a004042629b856e7eb01d7ff3448843068a5 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 10 Jan 2006 20:28:27 +0000 Subject: fixed a memory leak in the transaction cleanup code --- lib/libalpm/trans.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3-24-g4f1b