alpm/sync: very small memleak fix

Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Xavier Chantry 2010-10-16 12:27:34 +02:00 committed by Dan McGee
parent a2d7f6f206
commit 30734c9a4a
1 changed files with 3 additions and 1 deletions

View File

@ -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.