gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] 04/05: UTIL: fix memory leak in test.


From: gnunet
Subject: [gnunet] 04/05: UTIL: fix memory leak in test.
Date: Mon, 06 Feb 2023 05:41:14 +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 491979ce510a5dd0f7afd7630a4e3ba55f1c5f37
Author: ulfvonbelow <strilen@tilde.club>
AuthorDate: Sun Jan 29 08:06:31 2023 -0600

    UTIL: 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/util/test_common_allocation.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/test_common_allocation.c 
b/src/util/test_common_allocation.c
index e262b696e..d4cc4bb58 100644
--- a/src/util/test_common_allocation.c
+++ b/src/util/test_common_allocation.c
@@ -154,6 +154,7 @@ check2 (void)
                                a1,
                                5));
   GNUNET_assert (5 == a1_len);
+  GNUNET_free (a1);
   return 0;
 }
 

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