From dfe9520d60699a7ac19ffbb717c3a6147a1604ec Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Fri, 24 Nov 2023 09:42:41 +0100 Subject: PEERSTORE: Fix memleak on hello_changed_notify_cancel --- contrib/gana | 2 +- src/service/peerstore/peerstore_api.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/gana b/contrib/gana index c1dc2dc97..840792da1 160000 --- a/contrib/gana +++ b/contrib/gana @@ -1 +1 @@ -Subproject commit c1dc2dc975742c929a523c22d91f7d4f82787230 +Subproject commit 840792da1b88e826a178df77a48f42b0b58a2570 diff --git a/src/service/peerstore/peerstore_api.c b/src/service/peerstore/peerstore_api.c index 394f64378..cf29925a4 100644 --- a/src/service/peerstore/peerstore_api.c +++ b/src/service/peerstore/peerstore_api.c @@ -1105,6 +1105,7 @@ GNUNET_PEERSTORE_hello_changed_notify_cancel (struct GNUNET_PEERSTORE_watch_cancel (nc->wc); nc->wc = NULL; } + GNUNET_free (nc); } -- cgit v1.2.3