diff options
author | ulfvonbelow <strilen@tilde.club> | 2023-01-29 08:06:31 -0600 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-02-06 13:32:33 +0900 |
commit | 491979ce510a5dd0f7afd7630a4e3ba55f1c5f37 (patch) | |
tree | c9ae850a3b93d60ee41bfae72496300b345de08c | |
parent | 3b5473735cb495ca50139adeb27e5135accaa22d (diff) | |
download | gnunet-491979ce510a5dd0f7afd7630a4e3ba55f1c5f37.tar.gz gnunet-491979ce510a5dd0f7afd7630a4e3ba55f1c5f37.zip |
UTIL: fix memory leak in test.
This allows us to use sanitizers to find bugs that matter.
Signed-off-by: Martin Schanzenbach <schanzen@gnunet.org>
-rw-r--r-- | src/util/test_common_allocation.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/test_common_allocation.c b/src/util/test_common_allocation.c index e262b696e..d4cc4bb58 100644 --- a/src/util/test_common_allocation.c +++ b/src/util/test_common_allocation.c | |||
@@ -154,6 +154,7 @@ check2 (void) | |||
154 | a1, | 154 | a1, |
155 | 5)); | 155 | 5)); |
156 | GNUNET_assert (5 == a1_len); | 156 | GNUNET_assert (5 == a1_len); |
157 | GNUNET_free (a1); | ||
157 | return 0; | 158 | return 0; |
158 | } | 159 | } |
159 | 160 | ||