aboutsummaryrefslogtreecommitdiff
path: root/tests/test_environment.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-03-20 09:31:13 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-03-20 09:31:13 -0400
commitf59c6633fe8e06007570c088aed89179de96759e (patch)
tree258a541594833532a2f39d8a7b64ad7d40651729 /tests/test_environment.c
parent2ffd817603ecc713988fe2796c9562a857a92ef4 (diff)
downloadstasis-f59c6633fe8e06007570c088aed89179de96759e.tar.gz
free(3): If ptr is NULL, no operation is performed.free-mem
Diffstat (limited to 'tests/test_environment.c')
-rw-r--r--tests/test_environment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_environment.c b/tests/test_environment.c
index 43c3672..4f36883 100644
--- a/tests/test_environment.c
+++ b/tests/test_environment.c
@@ -20,7 +20,7 @@ void test_runtime_copy_empty() {
char **empty_env = calloc(1, sizeof(empty_env));
RuntimeEnv *env = runtime_copy(empty_env);
STASIS_ASSERT(env->num_inuse == 0, "copied array isn't empty");
- GENERIC_ARRAY_FREE(empty_env);
+ guard_array_free(empty_env);
runtime_free(env);
}