mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
fix memory leak in _alpm_sync_commit
Signed-off-by: Jonathan Conder <j@skurvy.no-ip.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
ac722c9327
commit
9ab6bfad22
@ -959,7 +959,8 @@ int _alpm_sync_commit(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t **data)
|
||||
}
|
||||
EVENT(trans, PM_TRANS_EVT_INTEGRITY_DONE, NULL, NULL);
|
||||
if(trans->flags & PM_TRANS_FLAG_DOWNLOADONLY) {
|
||||
return(0);
|
||||
ret = 0;
|
||||
goto error;
|
||||
}
|
||||
|
||||
trans->state = STATE_COMMITING;
|
||||
|
Loading…
Reference in New Issue
Block a user