diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-23 12:23:52 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-23 12:23:52 +0000 |
commit | 780d136085f7f7cbec1187a900e6354ea41bec15 (patch) | |
tree | 680228464d20d0d78cccf4b60138b0fc07424c66 /src/transport/test_plugin_transport.c | |
parent | e59638b72694b2f08174c667c4140029e255fc58 (diff) | |
download | gnunet-780d136085f7f7cbec1187a900e6354ea41bec15.tar.gz gnunet-780d136085f7f7cbec1187a900e6354ea41bec15.zip |
mem leak
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r-- | src/transport/test_plugin_transport.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index c8aa43f44..e3ab5fd56 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -272,7 +272,7 @@ env_notify_address (void *cls, | |||
272 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 272 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
273 | _("Plugin added address `%s'\n"), a2s); | 273 | _("Plugin added address `%s'\n"), a2s); |
274 | 274 | ||
275 | if (GNUNET_OK != api->string_to_address (api, a2s, strlen (a2s)+1, &s2a, &s2a_len)) | 275 | if ((GNUNET_OK != api->string_to_address (api, a2s, strlen (a2s)+1, &s2a, &s2a_len)) || (NULL == s2a)) |
276 | { | 276 | { |
277 | GNUNET_break (0); | 277 | GNUNET_break (0); |
278 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 278 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
@@ -292,7 +292,8 @@ env_notify_address (void *cls, | |||
292 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 292 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
293 | _("Plugin creates different address length when connecting back and forth!\n")); | 293 | _("Plugin creates different address length when connecting back and forth!\n")); |
294 | } | 294 | } |
295 | 295 | GNUNET_free (s2a); | |
296 | GNUNET_free (a2s); | ||
296 | if (GNUNET_OK != api->check_address (api->cls, w->addr, w->addrlen)) | 297 | if (GNUNET_OK != api->check_address (api->cls, w->addr, w->addrlen)) |
297 | { | 298 | { |
298 | GNUNET_break (0); | 299 | GNUNET_break (0); |