summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-26 20:11:30 -0400
committerDan McGee <dan@archlinux.org>2007-04-27 14:53:01 -0400
commitec7d6955b821c51a28efce31268c9c23cb1b5928 (patch)
tree2845c5169b4bb0303137e31fa18ae9ac8fbc7404 /lib/libalpm/alpm.c
parentdb9e10f14215ab6453cd663a62cae5bdfac3d61b (diff)
downloadpacman-ec7d6955b821c51a28efce31268c9c23cb1b5928.tar.xz
Remove FREESYNC macro and correctly type _alpm_sync_free
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 1b7eea59..63b418c1 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -1203,7 +1203,12 @@ alpm_list_t SYMEXPORT *alpm_get_upgrades()
return(syncpkgs);
error:
if(syncpkgs) {
- alpm_list_free_inner(syncpkgs, _alpm_sync_free);
+ alpm_list_t *tmp;
+ for(tmp = syncpkgs; tmp; tmp = alpm_list_next(tmp)) {
+ if(tmp->data) {
+ _alpm_sync_free(tmp->data);
+ }
+ }
alpm_list_free(syncpkgs);
}
return(NULL);