diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-12-08 15:39:18 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-12-08 15:39:18 +0000 |
commit | 189ee1a99d941a50efdc254d27769c9e72abc5f2 (patch) | |
tree | 67deea1c37a4f8fe223227e4e29aa1c5d9b0e419 /src/testing | |
parent | 747c7710b9244744d9b94f67a0698b40ff129ebe (diff) | |
download | gnunet-189ee1a99d941a50efdc254d27769c9e72abc5f2.tar.gz gnunet-189ee1a99d941a50efdc254d27769c9e72abc5f2.zip |
- Fixed memory leak / possible crash of freeing an invalid pointer
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing_group.c | 4 |
1 files changed, 3 insertions, 1 deletions
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, | |||
5149 | if (GNUNET_OK != | 5149 | if (GNUNET_OK != |
5150 | GNUNET_CONFIGURATION_get_value_string (specific_peer->cfg, "statistics", | 5150 | GNUNET_CONFIGURATION_get_value_string (specific_peer->cfg, "statistics", |
5151 | "unixpath", &unix_domain_socket)) | 5151 | "unixpath", &unix_domain_socket)) |
5152 | { | ||
5153 | GNUNET_free (unix_domain_socket); | ||
5152 | return GNUNET_NO; | 5154 | return GNUNET_NO; |
5155 | } | ||
5153 | 5156 | ||
5154 | if (GNUNET_OK != | 5157 | if (GNUNET_OK != |
5155 | GNUNET_CONFIGURATION_get_value_number (specific_peer->cfg, "statistics", | 5158 | GNUNET_CONFIGURATION_get_value_number (specific_peer->cfg, "statistics", |
5156 | "port", &port)) | 5159 | "port", &port)) |
5157 | { | 5160 | { |
5158 | GNUNET_free (unix_domain_socket); | ||
5159 | return GNUNET_NO; | 5161 | return GNUNET_NO; |
5160 | } | 5162 | } |
5161 | 5163 | ||