diff options
author | Xavier Chantry <chantry.xavier@gmail.com> | 2010-10-16 12:27:34 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-10-18 23:50:32 +0200 |
commit | 30734c9a4a63a1bfac0921b944e84f24dc87d76f (patch) | |
tree | 917193e4b53e313d3a2651f3097452b2038480ac /lib/libalpm/sync.c | |
parent | a2d7f6f2061fdf0ff225eaceda5c78ee520495ff (diff) | |
download | pacman-30734c9a4a63a1bfac0921b944e84f24dc87d76f.tar.gz pacman-30734c9a4a63a1bfac0921b944e84f24dc87d76f.tar.xz |
alpm/sync: very small memleak fix
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r-- | lib/libalpm/sync.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index f8193962..57097fd1 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -333,7 +333,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. |