diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-01-28 21:42:55 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-01-28 21:42:55 -0500 |
commit | 7c2b1baad8434f9f7b19efe48719942cb3bce4cd (patch) | |
tree | 79666a768eb3392ddea57a78c57531d00a145769 /src/config_global.c | |
parent | 8b06e3e66a4cf26c02f9e0175263e1a561186c1b (diff) | |
download | spmc-7c2b1baad8434f9f7b19efe48719942cb3bce4cd.tar.gz |
Fix more memory leaks:
Add ability to free ManifestPackage structure
Fix bug: manifest_search pointer got free()ed accidentally.
Diffstat (limited to 'src/config_global.c')
-rw-r--r-- | src/config_global.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/config_global.c b/src/config_global.c index 5ef6faa..bda63d6 100644 --- a/src/config_global.c +++ b/src/config_global.c @@ -292,6 +292,15 @@ void free_global_config(void) { if (SPM_GLOBAL.config) { config_free(SPM_GLOBAL.config); } + if (SPM_GLOBAL.repo_target) { + free(SPM_GLOBAL.repo_target); + } + if (SPM_GLOBAL.mirror_config) { + free(SPM_GLOBAL.mirror_config); + } + if (SPM_GLOBAL.mirror_list) { + mirror_list_free(SPM_GLOBAL.mirror_list); + } } /** |