From 30734c9a4a63a1bfac0921b944e84f24dc87d76f Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sat, 16 Oct 2010 12:27:34 +0200 Subject: alpm/sync: very small memleak fix Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- lib/libalpm/sync.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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. -- cgit v1.2.3-70-g09d2