From 47908873df866a108681cd6ec8fdd95b3a3bf513 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 5 Dec 2023 00:01:41 -0600 Subject: [PATCH] Bugfix: Unit test should reset size after free. The size must be reset due to the manual free otherwise a memory error occurs later on. --- level_0/f_network/tests/unit/c/test-network-to_ip_string.c | 1 + 1 file changed, 1 insertion(+) diff --git a/level_0/f_network/tests/unit/c/test-network-to_ip_string.c b/level_0/f_network/tests/unit/c/test-network-to_ip_string.c index c428e42..e4df1bb 100644 --- a/level_0/f_network/tests/unit/c/test-network-to_ip_string.c +++ b/level_0/f_network/tests/unit/c/test-network-to_ip_string.c @@ -96,6 +96,7 @@ void test__f_network_to_ip_string__works(void **state) { family.type = f_network_family_ip_6_e; ip.used = 0; + ip.size = 0; { will_return(__wrap_inet_ntop, false); -- 1.8.3.1