summaryrefslogtreecommitdiff
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
authorJonathan Conder <j@skurvy.no-ip.org>2010-05-16 17:34:38 +1200
committerDan McGee <dan@archlinux.org>2010-05-18 11:51:31 -0500
commit9ab6bfad223ce65d3c37785d0aae8676bfc2702f (patch)
tree4e8331d87d36519a05832b79f2c83176dcfda8a1 /lib/libalpm/sync.c
parentac722c93274157cb10f0a7b341bdbdb340847dc7 (diff)
downloadpacman-9ab6bfad223ce65d3c37785d0aae8676bfc2702f.tar.xz
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>
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r--lib/libalpm/sync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index be36941f..67afd397 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -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;