View Issue Details

IDProjectCategoryView StatusLast Update
0007621GNUnetutil librarypublic2024-02-11 11:47
Reporterulfvonbelow Assigned Toschanzen  
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.19.4Fixed in Version0.19.4 
Summary0007621: Memory leak in test_common_allocation.c
Descriptiona1 is not freed in check2.
Steps To Reproduce./configure --enable-sanitizer
make
make install
make check
Additional InformationPatch attached.
Tagspatch
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

Activities

schanzen

2023-02-06 05:32

administrator   ~0019760

491979ce510a5dd0f7afd7630a4e3ba55f1c5f37

schanzen

2023-06-01 20:26

administrator   ~0020244

released some time ago

Issue History

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