From f59c6633fe8e06007570c088aed89179de96759e Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 20 Mar 2025 09:31:13 -0400 Subject: free(3): If ptr is NULL, no operation is performed. --- tests/test_environment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_environment.c') 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); } -- cgit