summaryrefslogtreecommitdiff
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
authorXavier Chantry <chantry.xavier@gmail.com>2010-10-16 12:27:34 +0200
committerDan McGee <dan@archlinux.org>2010-10-18 16:50:32 -0500
commit30734c9a4a63a1bfac0921b944e84f24dc87d76f (patch)
tree917193e4b53e313d3a2651f3097452b2038480ac /lib/libalpm/sync.c
parenta2d7f6f2061fdf0ff225eaceda5c78ee520495ff (diff)
downloadpacman-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.c4
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.