diff options
Diffstat (limited to 'src/hello/test_hello-ng.c')
-rw-r--r-- | src/hello/test_hello-ng.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/hello/test_hello-ng.c b/src/hello/test_hello-ng.c index 4ace9439f..ef84e2425 100644 --- a/src/hello/test_hello-ng.c +++ b/src/hello/test_hello-ng.c | |||
@@ -31,6 +31,7 @@ main (int argc, | |||
31 | struct GNUNET_PeerIdentity pid; | 31 | struct GNUNET_PeerIdentity pid; |
32 | struct GNUNET_TIME_Absolute t = GNUNET_TIME_absolute_get (); | 32 | struct GNUNET_TIME_Absolute t = GNUNET_TIME_absolute_get (); |
33 | char *res; | 33 | char *res; |
34 | char *address; | ||
34 | size_t res_len; | 35 | size_t res_len; |
35 | enum GNUNET_NetworkType nt; | 36 | enum GNUNET_NetworkType nt; |
36 | 37 | ||
@@ -47,10 +48,13 @@ main (int argc, | |||
47 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, | 48 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, |
48 | "%s\n", res); | 49 | "%s\n", res); |
49 | GNUNET_assert (NULL != | 50 | GNUNET_assert (NULL != |
50 | GNUNET_HELLO_extract_address ((void**) res, | 51 | (address = |
52 | GNUNET_HELLO_extract_address ((void**) res, | ||
51 | res_len, | 53 | res_len, |
52 | &pid, | 54 | &pid, |
53 | &nt, | 55 | &nt, |
54 | &t)); | 56 | &t))); |
57 | GNUNET_free (address); | ||
58 | GNUNET_free (res); | ||
55 | return 0; | 59 | return 0; |
56 | } | 60 | } |