aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-02-26 10:03:34 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-02-26 10:03:34 -0500
commit924c8e9ae1bf1780447180ae717467d1beefc8fa (patch)
tree1601eb673dbdfb30e910f06087b3418b4ee46286 /src/main.c
parentfc187bccb5856b2d6dd3816fc69ffe0001aa615d (diff)
downloadstasis-924c8e9ae1bf1780447180ae717467d1beefc8fa.tar.gz
Fixes several memory leaks
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 10 insertions, 0 deletions
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;