From 4250d9bcfcf9dbc95418c64932ad39f71ff2019e Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 10 Mar 2024 15:13:15 -0400 Subject: Use do/while in guard_* macros to make them behave more like functions --- src/conda.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/conda.c') diff --git a/src/conda.c b/src/conda.c index 87b32d4..f6d1420 100644 --- a/src/conda.c +++ b/src/conda.c @@ -185,12 +185,12 @@ int conda_check_required() { } } if (found < (sizeof(tools) / sizeof(*tools)) - 1) { - guard_free(cmd_out) - guard_strlist_free(result) + guard_free(cmd_out); + guard_strlist_free(result); return 1; } - guard_free(cmd_out) - guard_strlist_free(result) + 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; -- cgit