From 5c57b333fd9ca376e9ba2c1932127f733d684abb Mon Sep 17 00:00:00 2001 From: Gabor X Toth <*@tg-x.net> Date: Mon, 6 Jun 2016 20:44:39 +0000 Subject: [PATCH] fixes --- src/social/gnunet-social.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/social/gnunet-social.c b/src/social/gnunet-social.c index a6ea772e7..3092792d4 100644 --- a/src/social/gnunet-social.c +++ b/src/social/gnunet-social.c @@ -379,6 +379,7 @@ host_announce (const char *method, const char *data, size_t data_size) GNUNET_SOCIAL_host_announce (hst, method, env, notify_data, &tmit, GNUNET_SOCIAL_ANNOUNCE_NONE); + GNUNET_PSYC_env_destroy (env); } @@ -396,6 +397,7 @@ host_assign (const char *name, const char *data, size_t data_size) GNUNET_SOCIAL_host_announce (hst, "_assign", env, notify_data, &tmit, GNUNET_SOCIAL_ANNOUNCE_NONE); + GNUNET_PSYC_env_destroy (env); } @@ -417,6 +419,7 @@ guest_talk (const char *method, GNUNET_SOCIAL_guest_talk (gst, method, env, notify_data, &tmit, GNUNET_SOCIAL_TALK_NONE); + GNUNET_PSYC_env_destroy (env); } @@ -673,6 +676,7 @@ guest_recv_local_enter (void *cls, int result, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Guest entered to local place: %s, max_message_id: %" PRIu64 "\n", pub_str, max_message_id); + GNUNET_free (pub_str); GNUNET_assert (0 <= result); if (op_guest_enter && !opt_follow) @@ -821,6 +825,7 @@ host_entered (void *cls, int result, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Host entered: %s, max_message_id: %" PRIu64 "\n", pub_str, max_message_id); + GNUNET_free (pub_str); if (op_host_enter && !opt_follow) { -- 2.25.1