diff options
author | Chantry Xavier <shiningxc@gmail.com> | 2007-11-26 16:54:47 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-12-01 18:10:22 +0100 |
commit | 22c2043160f30a9ed34fd2886edaf521029a9248 (patch) | |
tree | 11d8f798f9a8b9f675fb7275746c74f340203b52 /lib/libalpm/sync.c | |
parent | 5f811dc0207ead061b89d3acc6466bb390fd242e (diff) | |
download | pacman-22c2043160f30a9ed34fd2886edaf521029a9248.tar.gz pacman-22c2043160f30a9ed34fd2886edaf521029a9248.tar.xz |
Minor fixes in sync.c and deps.c.
* memleak found by Nagy in checkdeps
* an useless line found by Nagy in resolvedeps
* data wasn't set to the missing dependencies in sync_prepare
* use the MALLOC macro in resolvedeps
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r-- | lib/libalpm/sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index f6fa3185..5e58400f 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -670,7 +670,7 @@ int _alpm_sync_prepare(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t *dbs_sync if(deps) { pm_errno = PM_ERR_UNSATISFIED_DEPS; ret = -1; - FREELIST(deps); + *data = deps; goto cleanup; } } |