View Issue Details

IDProjectCategoryView StatusLast Update
0008813GNUnetcadet servicepublic2024-08-29 12:50
Reporterulfvonbelow Assigned Toschanzen  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx86-64OSGuix SystemOS Versiona1d711c92e
Product VersionGit master 
Fixed in Version0.22.0 
Summary0008813: memory leak in announce_id in gnunet-service-cadet
Descriptionblock is never freed.
Steps To Reproduce1. Build gnunet with --enable-sanitizer
2. Start the node with gnunet-arm -s
3. Stop the node after a bit with gnunet-arm -e
4. Observe reported memory leak wherever you've configured cadet to log to
Additional InformationPatch attached.
TagsNo tags attached.
Attached Files
0001-cadet-fix-memory-leak-in-announce_id-in-gnunet-servi.patch (813 bytes)   
From 5816eb3dbf1075e1f1337d42a94c05e7414d341d Mon Sep 17 00:00:00 2001
From: ulfvonbelow <striness@tilde.club>
Date: Sun, 5 May 2024 01:54:56 -0500
Subject: [PATCH] cadet: fix memory leak in announce_id in
 gnunet-service-cadet.

---
 src/service/cadet/gnunet-service-cadet_dht.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/service/cadet/gnunet-service-cadet_dht.c b/src/service/cadet/gnunet-service-cadet_dht.c
index 28b5448fd..dcd1efaa2 100644
--- a/src/service/cadet/gnunet-service-cadet_dht.c
+++ b/src/service/cadet/gnunet-service-cadet_dht.c
@@ -217,6 +217,7 @@ announce_id (void *cls)
                   expiration,  /* Data expiration */
                   NULL,         /* Continuation */
                   NULL);        /* Continuation closure */
+  GNUNET_free (block);
 }
 
 
-- 
2.41.0

Activities

schanzen

2024-05-13 10:41

administrator   ~0022388

Applied

Issue History

Date Modified Username Field Change
2024-05-07 05:39 ulfvonbelow New Issue
2024-05-07 05:39 ulfvonbelow File Added: 0001-cadet-fix-memory-leak-in-announce_id-in-gnunet-servi.patch
2024-05-13 10:41 schanzen Assigned To => schanzen
2024-05-13 10:41 schanzen Status new => resolved
2024-05-13 10:41 schanzen Resolution open => fixed
2024-05-13 10:41 schanzen Note Added: 0022388
2024-08-26 12:25 schanzen Fixed in Version => 0.22.0
2024-08-29 12:50 schanzen Status resolved => closed