View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008794 | GNUnet | peerstore | public | 2024-05-03 04:05 | 2024-06-08 12:03 |
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 | 0.21.1 | ||||
Fixed in Version | 0.21.2 | ||||
Summary | 0008794: memory leak in peerstore_api_monitor | ||||
Description | the sub_system field of the GNUNET_PEERSTORE_Monitor isn't freed when it is. | ||||
Steps To Reproduce | 1. ./configure --enable-sanitizer ; make ; make check 2. Observe memory leak in anything that uses peerstore monitoring api. | ||||
Additional Information | Patch attached. | ||||
Tags | No 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 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2024-05-03 04:05 | ulfvonbelow | New Issue | |
2024-05-03 04:05 | ulfvonbelow | File Added: 0001-peerstore-fix-memory-leak-in-peerstore_api_monitor.c.patch | |
2024-05-05 14:16 | schanzen | Assigned To | => schanzen |
2024-05-05 14:16 | schanzen | Status | new => resolved |
2024-05-05 14:16 | schanzen | Resolution | open => fixed |
2024-05-05 14:16 | schanzen | Fixed in Version | => 0.21.2 |
2024-05-05 14:16 | schanzen | Note Added: 0022349 | |
2024-06-08 12:03 | schanzen | Note Added: 0022552 | |
2024-06-08 12:03 | schanzen | Status | resolved => closed |