diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2014-02-03 18:09:18 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-02-04 04:48:37 +0100 |
commit | b9601b1e597c64df9d04678509c31f9bab538fd2 (patch) | |
tree | f4976bded497ef1e5a1d7b41a3b57762202dd95d /src/pacman/remove.c | |
parent | 953808a9ee86fc5bcd63f4458662a5c73ccf37d1 (diff) | |
download | pacman-b9601b1e597c64df9d04678509c31f9bab538fd2.tar.gz pacman-b9601b1e597c64df9d04678509c31f9bab538fd2.tar.xz |
alpm: export *_free functions
Front-ends should be able to free memory that alpm hands them.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/remove.c')
-rw-r--r-- | src/pacman/remove.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/remove.c b/src/pacman/remove.c index 56b93334..00bd3b3b 100644 --- a/src/pacman/remove.c +++ b/src/pacman/remove.c @@ -121,12 +121,13 @@ int pacman_remove(alpm_list_t *targets) char *depstring = alpm_dep_compute_string(miss->depend); colon_printf(_("%s: requires %s\n"), miss->target, depstring); free(depstring); + alpm_depmissing_free(miss); } break; default: break; } - FREELIST(data); + alpm_list_free(data); retval = 1; goto cleanup; } |