[PATCH 2/2] free memory for --overwrite lists

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH 2/2] free memory for --overwrite lists

Andrew Gregory
Signed-off-by: Andrew Gregory <[hidden email]>
---
 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);
--
2.12.2