aboutsummaryrefslogtreecommitdiff
path: root/src/social/test_social.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-19 21:47:34 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-19 21:47:34 +0000
commit506926e9bded251ec9073097c8ab2f87553e0650 (patch)
treea74e7517e798a9e3e541510d31478d61427bd222 /src/social/test_social.c
parentcc1dfaf41624ea34094b1f2d4aab43591e2d61e7 (diff)
downloadgnunet-506926e9bded251ec9073097c8ab2f87553e0650.tar.gz
gnunet-506926e9bded251ec9073097c8ab2f87553e0650.zip
-fix leaks
Diffstat (limited to 'src/social/test_social.c')
-rw-r--r--src/social/test_social.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/social/test_social.c b/src/social/test_social.c
index d7a407c1a..ce4714651 100644
--- a/src/social/test_social.c
+++ b/src/social/test_social.c
@@ -293,12 +293,14 @@ host_farewell (void *cls,
293 struct GNUNET_ENV_Modifier *variables) 293 struct GNUNET_ENV_Modifier *variables)
294{ 294{
295 // FIXME: this function is not called yet 295 // FIXME: this function is not called yet
296 struct GNUNET_CRYPTO_EcdsaPublicKey *nym_key = GNUNET_SOCIAL_nym_get_key (nym);
297 char *str;
296 298
297 struct GNUNET_CRYPTO_EcdsaPublicKey * 299 str = GNUNET_CRYPTO_ecdsa_public_key_to_string (nym_key);
298 nym_key = GNUNET_SOCIAL_nym_get_key (nym);
299 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 300 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
300 "Nym %s has left the place.\n", 301 "Nym %s has left the place.\n",
301 GNUNET_CRYPTO_ecdsa_public_key_to_string (nym_key)); 302 str);
303 GNUNET_free (str);
302 GNUNET_assert (0 == memcmp (&guest_pub_key, nym_key, sizeof (*nym_key))); 304 GNUNET_assert (0 == memcmp (&guest_pub_key, nym_key, sizeof (*nym_key)));
303 305
304 GNUNET_SCHEDULER_add_now (&schedule_host_leave, NULL); 306 GNUNET_SCHEDULER_add_now (&schedule_host_leave, NULL);