summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
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 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.