From 924c8e9ae1bf1780447180ae717467d1beefc8fa Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 26 Feb 2024 10:03:34 -0500 Subject: Fixes several memory leaks --- src/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index c5e4357..9c4f76b 100644 --- a/src/main.c +++ b/src/main.c @@ -113,6 +113,15 @@ void globals_free() { guard_free(globals.conda_install_prefix) guard_strlist_free(globals.conda_packages) guard_strlist_free(globals.pip_packages) + guard_free(globals.sysconfdir) + guard_free(globals.jfrog.arch) + guard_free(globals.jfrog.os) + guard_free(globals.jfrog.repo) + guard_free(globals.jfrog.version) + guard_free(globals.jfrog.cli_major_ver) + guard_free(globals.jfrog.jfrog_artifactory_base_url) + guard_free(globals.jfrog.jfrog_artifactory_product) + guard_free(globals.jfrog.remote_filename) } int main(int argc, char *argv[], char *arge[]) { @@ -471,6 +480,7 @@ int main(int argc, char *argv[], char *arge[]) { delivery_free(&ctx); globals_free(); tpl_free(); + guard_free(config_input) msg(OMC_MSG_L1, "Done!\n"); return 0; -- cgit