1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-01-08 12:28:00 -05:00

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

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.