gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] 04/28: -CORE: fix memory leak in test.


From: gnunet
Subject: [gnunet] 04/28: -CORE: fix memory leak in test.
Date: Mon, 06 Feb 2023 06:19:06 +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 913ea68f2d8ced3fb78cff773757f5846b308cae
Author: ulfvonbelow <strilen@tilde.club>
AuthorDate: Sun Jan 29 07:10:47 2023 -0600

    -CORE: fix memory leak in test.
    
    This allows us to use sanitizers to find bugs that matter.
    
    Signed-off-by: Martin Schanzenbach <schanzen@gnunet.org>
---
 src/core/test_core_quota_compliance.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/core/test_core_quota_compliance.c 
b/src/core/test_core_quota_compliance.c
index eb5ca7c2b..099c6fa3b 100644
--- a/src/core/test_core_quota_compliance.c
+++ b/src/core/test_core_quota_compliance.c
@@ -530,6 +530,7 @@ process_hello (void *cls,
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Received (my) HELLO from transport service\n");
   GNUNET_assert (message != NULL);
+  if (NULL != p->hello) GNUNET_free (p->hello);
   p->hello = GNUNET_malloc (ntohs (message->size));
   GNUNET_memcpy (p->hello, message, ntohs (message->size));
   if ((p == &p1) &&

-- 
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]