diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-26 10:03:34 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-26 10:03:34 -0500 |
commit | 924c8e9ae1bf1780447180ae717467d1beefc8fa (patch) | |
tree | 1601eb673dbdfb30e910f06087b3418b4ee46286 /src/conda.c | |
parent | fc187bccb5856b2d6dd3816fc69ffe0001aa615d (diff) | |
download | stasis-924c8e9ae1bf1780447180ae717467d1beefc8fa.tar.gz |
Fixes several memory leaks
Diffstat (limited to 'src/conda.c')
-rw-r--r-- | src/conda.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conda.c b/src/conda.c index acec709..87b32d4 100644 --- a/src/conda.c +++ b/src/conda.c @@ -185,8 +185,12 @@ int conda_check_required() { } } if (found < (sizeof(tools) / sizeof(*tools)) - 1) { + guard_free(cmd_out) + guard_strlist_free(result) return 1; } + guard_free(cmd_out) + guard_strlist_free(result) } else { msg(OMC_MSG_ERROR | OMC_MSG_L2, "The base package requirement check could not be performed\n"); return 2; |