summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/po/libalpm.pot
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2007-11-21 19:51:46 +0100
committerDan McGee <dan@archlinux.org>2007-11-25 21:01:19 +0100
commit8d9ee923ec3860e3f1133a66a0dc94ce85644bb4 (patch)
treef9534e1924c24f6c978c80709d8316d20c9c4280 /lib/libalpm/po/libalpm.pot
parent8bee526d28eaad45e0e1e210cd523e157c71cfae (diff)
downloadpacman-8d9ee923ec3860e3f1133a66a0dc94ce85644bb4.tar.gz
pacman-8d9ee923ec3860e3f1133a66a0dc94ce85644bb4.tar.xz
Fix several memleaks, mostly related to errors handling.
* The frontend calls alpm_trans_prepare(&data), and in case of errors, receive the missing dependencies / conflicts / etc in the data pointer. It apparently needs to free this structure totally with : alpm_list_free_inner(data, free) alpm_list_free(data) So I added alpm_list_free_inner(data, free) in pacman/{sync.c,remove.c,add,c} * in _alpm_sync_prepare, the deps and asked lists were not freed in case of errors (unresolvable conflicts). Besides the code for handling this case was duplicated. * in _alpm_remove_commit, free was used instead of alpm_list_free for newfiles. * newline fix in pacman/sync.c Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/po/libalpm.pot')
0 files changed, 0 insertions, 0 deletions