Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/trans.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r--lib/libalpm/trans.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index 54267bfc..e0162524 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -86,8 +86,13 @@ void _alpm_trans_free(pmtrans_t *trans)
}
FREELIST(trans->packages);
} else {
- FREELISTPKGS(trans->packages);
+ alpm_list_t *tmp;
+ for(tmp = trans->packages; tmp; tmp = alpm_list_next(tmp)) {
+ _alpm_pkg_free(tmp->data);
+ tmp->data = NULL;
+ }
}
+ trans->packages = NULL;
FREELIST(trans->skip_add);
FREELIST(trans->skip_remove);