View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007621 | GNUnet | util library | public | 2023-01-29 21:17 | 2024-02-11 11:47 |
Reporter | ulfvonbelow | Assigned To | schanzen | ||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | Git master | ||||
Target Version | 0.19.4 | Fixed in Version | 0.19.4 | ||
Summary | 0007621: Memory leak in test_common_allocation.c | ||||
Description | a1 is not freed in check2. | ||||
Steps To Reproduce | ./configure --enable-sanitizer make make install make check | ||||
Additional Information | Patch attached. | ||||
Tags | patch | ||||
Attached Files | 0001-UTIL-fix-memory-leak-in-test.patch (721 bytes)
From 1aabd6038eaf5a6643318a11f18692b172a77375 Mon Sep 17 00:00:00 2001 From: ulfvonbelow <strilen@tilde.club> Date: Sun, 29 Jan 2023 08:06:31 -0600 Subject: [PATCH] UTIL: fix memory leak in test. This allows us to use sanitizers to find bugs that matter. --- src/util/test_common_allocation.c | 1 + 1 file changed, 1 insertion(+) 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) a1, 5)); GNUNET_assert (5 == a1_len); + GNUNET_free (a1); return 0; } -- 2.38.1 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2023-01-29 21:17 | ulfvonbelow | New Issue | |
2023-01-29 21:17 | ulfvonbelow | Tag Attached: patch | |
2023-01-29 21:17 | ulfvonbelow | Tag Attached: test | |
2023-01-29 21:17 | ulfvonbelow | File Added: 0001-UTIL-fix-memory-leak-in-test.patch | |
2023-02-06 05:32 | schanzen | Assigned To | => schanzen |
2023-02-06 05:32 | schanzen | Status | new => resolved |
2023-02-06 05:32 | schanzen | Resolution | open => fixed |
2023-02-06 05:32 | schanzen | Fixed in Version | => 0.19.4 |
2023-02-06 05:32 | schanzen | Note Added: 0019760 | |
2023-02-06 05:46 | schanzen | Target Version | => 0.19.4 |
2023-06-01 20:26 | schanzen | Note Added: 0020244 | |
2023-06-01 20:26 | schanzen | Status | resolved => closed |
2024-02-11 11:47 | Christian Grothoff | Tag Detached: test |