gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 11/28: HELLO: fix memory leak in GNUNET_HELLO_extract_address.


From: gnunet
Subject: [gnunet] 11/28: HELLO: fix memory leak in GNUNET_HELLO_extract_address.
Date: Mon, 06 Feb 2023 06:19:13 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit 5a91ea8e9a171f99f8e5f3b26f488873efa08875
Author: ulfvonbelow <strilen@tilde.club>
AuthorDate: Sun Jan 29 07:01:27 2023 -0600

    HELLO: fix memory leak in GNUNET_HELLO_extract_address.
    
    Signed-off-by: Martin Schanzenbach <schanzen@gnunet.org>
---
 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);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]