From 977399bb759aacd2a18ba76df78078ee4cee6e67 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 2 Apr 2024 13:44:10 -0400 Subject: Changes to strlist_*() functions: Functions that modify the input StrList have been refactored to use `struct StrList **` instead of `struct StrList *`. * Fixes realloc error handling --- src/conda.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conda.c') diff --git a/src/conda.c b/src/conda.c index 332049d..8b370a8 100644 --- a/src/conda.c +++ b/src/conda.c @@ -186,11 +186,11 @@ int conda_check_required() { } if (found < (sizeof(tools) / sizeof(*tools)) - 1) { guard_free(cmd_out); - guard_strlist_free(result); + guard_strlist_free(&result); return 1; } guard_free(cmd_out); - guard_strlist_free(result); + guard_strlist_free(&result); } else { msg(OMC_MSG_ERROR | OMC_MSG_L2, "The base package requirement check could not be performed\n"); return 2; -- cgit