1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08: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:
Jonathan Conder 2010-05-16 17:34:38 +12:00 committed by Dan McGee
parent ac722c9327
commit 9ab6bfad22

View File

@ -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); EVENT(trans, PM_TRANS_EVT_INTEGRITY_DONE, NULL, NULL);
if(trans->flags & PM_TRANS_FLAG_DOWNLOADONLY) { if(trans->flags & PM_TRANS_FLAG_DOWNLOADONLY) {
return(0); ret = 0;
goto error;
} }
trans->state = STATE_COMMITING; trans->state = STATE_COMMITING;