Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2017-04-22 17:34:11 -0400
committerAllan McRae <allan@archlinux.org>2017-05-08 18:53:55 +1000
commitbf468c09562ecfa552f514c9f897742b309e64ee (patch)
tree002895ae8043c3d35a919c451e51d54adbfa1c84
parent12f74fd8950b89da15a397ed26bfeb226e20a443 (diff)
free memory for --overwrite lists
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--lib/libalpm/handle.c1
-rw-r--r--src/pacman/conf.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index b6b27881..502a5d9e 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -92,6 +92,7 @@ void _alpm_handle_free(alpm_handle_t *handle)
FREELIST(handle->noextract);
FREELIST(handle->ignorepkg);
FREELIST(handle->ignoregroup);
+ FREELIST(handle->overwrite_files);
alpm_list_free_inner(handle->assumeinstalled, (alpm_list_fn_free)alpm_dep_free);
alpm_list_free(handle->assumeinstalled);
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 261c8213..a283d7f4 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -143,6 +143,7 @@ int config_free(config_t *oldconfig)
FREELIST(oldconfig->assumeinstalled);
FREELIST(oldconfig->noupgrade);
FREELIST(oldconfig->noextract);
+ FREELIST(oldconfig->overwrite_files);
free(oldconfig->configfile);
free(oldconfig->rootdir);
free(oldconfig->dbpath);