summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-02 12:19:22 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-02 12:19:22 +0000
commitee5625ae674b2ea16b81bd3e6afa16f2b4fa5872 (patch)
treede5547b6ef4acf7fa6f4848db988554daaad8400
parent07a38db48da691cc59da3e5c6d8c218aa42fb7c2 (diff)
downloadpacman-ee5625ae674b2ea16b81bd3e6afa16f2b4fa5872.tar.xz
fixed a possible memory leak
-rw-r--r--lib/libalpm/add.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index a7432483..ea6cf6b3 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -273,6 +273,7 @@ int add_prepare(pmtrans_t *trans, pmdb_t *db, PMList **data)
lp = db_find_conflicts(db, trans->packages, handle->root, &skiplist);
if(lp != NULL) {
*data = lp;
+ FREELIST(skiplist);
RET_ERR(PM_ERR_FILE_CONFLICTS, -1);
}