From: Schanzenbach, Martin Date: Thu, 27 Sep 2018 20:25:08 +0000 (+0200) Subject: fix memcorruption X-Git-Tag: v0.11.0~241^2~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d592adeb6ce4a8838bbbde538957eedde4695533;p=oweals%2Fgnunet.git fix memcorruption --- diff --git a/src/rest-plugins/plugin_rest_reclaim.c b/src/rest-plugins/plugin_rest_reclaim.c index e85ae09fe..208c7470e 100644 --- a/src/rest-plugins/plugin_rest_reclaim.c +++ b/src/rest-plugins/plugin_rest_reclaim.c @@ -442,7 +442,6 @@ ticket_collect (void *cls, "issuer", value); GNUNET_free (tmp); - json_decref (value); tmp = GNUNET_STRINGS_data_to_string_alloc (&ticket->audience, sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey)); value = json_string (tmp); @@ -450,7 +449,6 @@ ticket_collect (void *cls, "audience", value); GNUNET_free (tmp); - json_decref (value); tmp = GNUNET_STRINGS_data_to_string_alloc (&ticket->rnd, sizeof (uint64_t)); value = json_string (tmp); @@ -458,7 +456,6 @@ ticket_collect (void *cls, "rnd", value); GNUNET_free (tmp); - json_decref (value); GNUNET_RECLAIM_ticket_iteration_next (handle->ticket_it); }