fixed a possible memory leak
This commit is contained in:
parent
07a38db48d
commit
ee5625ae67
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
lp = db_find_conflicts(db, trans->packages, handle->root, &skiplist);
|
||||||
if(lp != NULL) {
|
if(lp != NULL) {
|
||||||
*data = lp;
|
*data = lp;
|
||||||
|
FREELIST(skiplist);
|
||||||
RET_ERR(PM_ERR_FILE_CONFLICTS, -1);
|
RET_ERR(PM_ERR_FILE_CONFLICTS, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue