From: Kevin Day Date: Tue, 5 Dec 2023 06:01:41 +0000 (-0600) Subject: Bugfix: Unit test should reset size after free. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=47908873df866a108681cd6ec8fdd95b3a3bf513;p=fll 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. --- 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);