From ee5625ae674b2ea16b81bd3e6afa16f2b4fa5872 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Mon, 2 Jan 2006 12:19:22 +0000 Subject: fixed a possible memory leak --- lib/libalpm/add.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/add.c') 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); } -- cgit v1.2.3-70-g09d2