fixed a possible memory leak
This commit is contained in:
parent
07a38db48d
commit
ee5625ae67
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue