From 018a798a91c469c581517d727544ca03a33016a1 Mon Sep 17 00:00:00 2001
From: ulfvonbelow <strilen@tilde.club>
Date: Sun, 29 Jan 2023 07:01:27 -0600
Subject: [PATCH] HELLO: fix memory leak in GNUNET_HELLO_extract_address.

---
 src/hello/hello-ng.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/hello/hello-ng.c b/src/hello/hello-ng.c
index da3a069e0..9d77e4f80 100644
--- a/src/hello/hello-ng.c
+++ b/src/hello/hello-ng.c
@@ -169,9 +169,11 @@ GNUNET_HELLO_extract_address (const void *raw,
                                   sig,
                                   public_key))
   {
+    GNUNET_free (data);
     GNUNET_break_op (0);
     return NULL;
   }
+  GNUNET_free (data);
   *mono_time = raw_mono_time;
   *nt = raw_nt;
   return GNUNET_strdup (raw_addr);
-- 
2.38.1

