free memory for --overwrite lists
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
12f74fd895
commit
bf468c0956
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue