gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] branch master updated: fix leak in test on


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated: fix leak in test on error path
Date: Wed, 28 Feb 2018 00:46:37 +0100

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

grothoff pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 5e0e6b15 fix leak in test on error path
5e0e6b15 is described below

commit 5e0e6b15c4b2acf3a1e36a683d83a076e8a41764
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Feb 28 00:46:36 2018 +0100

    fix leak in test on error path
---
 src/testcurl/https/test_https_session_info.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/testcurl/https/test_https_session_info.c 
b/src/testcurl/https/test_https_session_info.c
index a58c7f7b..3507749f 100644
--- a/src/testcurl/https/test_https_session_info.c
+++ b/src/testcurl/https/test_https_session_info.c
@@ -132,7 +132,11 @@ test_query_session ()
       const union MHD_DaemonInfo *dinfo;
       dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
       if (NULL == dinfo || 0 == dinfo->port)
-        { MHD_stop_daemon (d); return 32; }
+        {
+          MHD_stop_daemon (d);
+          free (cbc.buf);
+          return 32;
+        }
       port = (int)dinfo->port;
     }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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