From bf468c09562ecfa552f514c9f897742b309e64ee Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sat, 22 Apr 2017 17:34:11 -0400 Subject: free memory for --overwrite lists Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- lib/libalpm/handle.c | 1 + src/pacman/conf.c | 1 + 2 files changed, 2 insertions(+) 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); -- cgit v1.2.3-24-g4f1b