View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0008813 | GNUnet | cadet service | public | 2024-05-07 05:39 | 2024-08-29 12:50 |
| Reporter | ulfvonbelow | Assigned To | schanzen | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | x86-64 | OS | Guix System | OS Version | a1d711c92e |
| Product Version | Git master | ||||
| Fixed in Version | 0.22.0 | ||||
| Summary | 0008813: memory leak in announce_id in gnunet-service-cadet | ||||
| Description | block is never freed. | ||||
| Steps To Reproduce | 1. 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 Information | Patch attached. | ||||
| Tags | No 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
| ||||
| 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 |