aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-04-02 18:03:32 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-04-02 18:55:47 -0400
commit58fdc9aba01ad0239e771cbb89aab765896c031f (patch)
treeef6663dd25a790accf48612dbfe959fac593bf54 /include
parentc75eb1c382d883ae9ac3d7c69d40eac1ee5e7d06 (diff)
downloadstasis-58fdc9aba01ad0239e771cbb89aab765896c031f.tar.gz
Adjust guard_strlist_free to match new function signature
Diffstat (limited to 'include')
-rw-r--r--include/omc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/omc.h b/include/omc.h
index cbc5950..0d62508 100644
--- a/include/omc.h
+++ b/include/omc.h
@@ -39,7 +39,7 @@
#include "relocation.h"
#define guard_runtime_free(X) do { if (X) { runtime_free(X); X = NULL; } } while (0)
-#define guard_strlist_free(X) do { if (X) { strlist_free(X); X = NULL; } } while (0)
+#define guard_strlist_free(X) do { if ((*X)) { strlist_free(X); (*X) = NULL; } } while (0)
#define guard_free(X) do { if (X) { free(X); X = NULL; } } while (0)
#define GENERIC_ARRAY_FREE(ARR) do { \
for (size_t ARR_I = 0; ARR && ARR[ARR_I] != NULL; ARR_I++) { \