From 189ee1a99d941a50efdc254d27769c9e72abc5f2 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 8 Dec 2011 15:39:18 +0000 Subject: [PATCH] - Fixed memory leak / possible crash of freeing an invalid pointer --- src/testing/testing_group.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index f56c51381..2f59cae72 100644 --- a/src/testing/testing_group.c +++ b/src/testing/testing_group.c @@ -5149,13 +5149,15 @@ stats_check_existing (struct GNUNET_TESTING_PeerGroup *pg, if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (specific_peer->cfg, "statistics", "unixpath", &unix_domain_socket)) + { + GNUNET_free (unix_domain_socket); return GNUNET_NO; + } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (specific_peer->cfg, "statistics", "port", &port)) { - GNUNET_free (unix_domain_socket); return GNUNET_NO; } -- 2.25.1