From 3a00d248ca2a3ab9de44fc60cc6dd042ff512804 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 9 Apr 2026 02:04:02 -0400 Subject: Return immediately if tests struct is NULL --- src/lib/delivery/delivery_test.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/lib/delivery/delivery_test.c b/src/lib/delivery/delivery_test.c index ca40b00..96dbb10 100644 --- a/src/lib/delivery/delivery_test.c +++ b/src/lib/delivery/delivery_test.c @@ -71,6 +71,10 @@ void test_free(struct Test **x) { void tests_free(struct Tests **x) { struct Tests *tests = *x; + if (!tests) { + return; + } + for (size_t i = 0; i < tests->num_alloc; i++) { test_free(&tests->test[i]); } -- cgit