summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-10 21:28:27 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-01-10 21:28:27 +0100
commit1704a004042629b856e7eb01d7ff3448843068a5 (patch)
tree1f3596f0ced6ae23a11cfa5ae63eb45ef60fd190
parent325d297739133de9f17619d9e030c6051748230a (diff)
downloadpacman-1704a004042629b856e7eb01d7ff3448843068a5.tar.gz
pacman-1704a004042629b856e7eb01d7ff3448843068a5.tar.xz
fixed a memory leak in the transaction cleanup code
-rw-r--r--lib/libalpm/trans.c3
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);
}