index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2010-10-18 16:52:57 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-10-18 16:52:57 -0500 |
commit | 0f3957ab48f34df8e151ec026dfac0d9d2df5aec (patch) | |
tree | 8d10bbaa8eaa12b8c7cd578067d24ba214ee454f /lib/libalpm/sync.c | |
parent | ce96f39ac9313a3583f346adfd2c709a658fae58 (diff) | |
parent | 30734c9a4a63a1bfac0921b944e84f24dc87d76f (diff) |
-rw-r--r-- | lib/libalpm/sync.c | 4 |
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index ab3d7871..1e73b8b0 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -332,7 +332,9 @@ int SYMEXPORT alpm_sync_dbtarget(char *dbname, char *target) if(dbs == NULL) { RET_ERR(PM_ERR_PKG_REPO_NOT_FOUND, -1); } - return(sync_target(dbs, target)); + int ret = sync_target(dbs, target); + alpm_list_free(dbs); + return(ret); } /** Add a sync target to the transaction. |