View Issue Details

IDProjectCategoryView StatusLast Update
0008794GNUnetpeerstorepublic2024-06-08 10:03
Reporterulfvonbelow Assigned Toschanzen Due Date
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx86-64OSGuix SystemOS Versiona1d711c92e
Product Version0.21.1 
Fixed in Version0.21.2 
Summary0008794: memory leak in peerstore_api_monitor
Descriptionthe sub_system field of the GNUNET_PEERSTORE_Monitor isn't freed when it is.
Steps To Reproduce1. ./configure --enable-sanitizer ; make ; make check
2. Observe memory leak in anything that uses peerstore monitoring api.
Additional InformationPatch attached.
TagsNo tags attached.
Attached Files
0001-peerstore-fix-memory-leak-in-peerstore_api_monitor.c.patch (773 bytes)   
From ca44afb1e91b95ea8bca223622714f188a9f453a Mon Sep 17 00:00:00 2001
From: ulfvonbelow <striness@tilde.club>
Date: Thu, 2 May 2024 19:32:53 -0500
Subject: [PATCH] peerstore: fix memory leak in peerstore_api_monitor.c.

---
 src/service/peerstore/peerstore_api_monitor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/service/peerstore/peerstore_api_monitor.c b/src/service/peerstore/peerstore_api_monitor.c
index fff0b3eb0..da5af3c86 100644
--- a/src/service/peerstore/peerstore_api_monitor.c
+++ b/src/service/peerstore/peerstore_api_monitor.c
@@ -286,6 +286,7 @@ GNUNET_PEERSTORE_monitor_stop (struct GNUNET_PEERSTORE_Monitor *zm)
     GNUNET_MQ_destroy (zm->mq);
     zm->mq = NULL;
   }
+  GNUNET_free (zm->sub_system);
   GNUNET_free (zm);
 }
 
-- 
2.41.0

Activities

schanzen

2024-05-05 12:16

administrator   ~0022349

applied

schanzen

2024-06-08 10:03

administrator   ~0022552

0.21.2 released

Issue History

Date ModifiedUsernameFieldChange
2024-05-03 02:05ulfvonbelowNew Issue
2024-05-03 02:05ulfvonbelowFile Added: 0001-peerstore-fix-memory-leak-in-peerstore_api_monitor.c.patch
2024-05-05 12:16schanzenAssigned To => schanzen
2024-05-05 12:16schanzenStatusnew => resolved
2024-05-05 12:16schanzenResolutionopen => fixed
2024-05-05 12:16schanzenFixed in Version => 0.21.2
2024-05-05 12:16schanzenNote Added: 0022349
2024-06-08 10:03schanzenNote Added: 0022552
2024-06-08 10:03schanzenStatusresolved => closed