[pacman-dev,2/2] free memory for --overwrite lists

Message ID 20170422213411.31369-2-andrew.gregory.8@gmail.com
State Accepted, archived
Headers show
Series [pacman-dev,1/2] add send_fakem to valgrind.supp | expand

Commit Message

Andrew Gregory April 22, 2017, 9:34 p.m. UTC
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
---
 lib/libalpm/handle.c | 1 +
 src/pacman/conf.c    | 1 +
 2 files changed, 2 insertions(+)

Patch

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);