From: Martin Schanzenbach Date: Thu, 8 Mar 2012 16:28:35 +0000 (+0000) Subject: -fixes X-Git-Tag: initial-import-from-subversion-38251~14350 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f27e8c6d1f10e3cdfdf4328f91ce761503cc0b1f;p=oweals%2Fgnunet.git -fixes --- diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index 19195d419..04d8291ed 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c @@ -1612,6 +1612,7 @@ put_gns_record(void *cls, nrb_data)) { GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Record serialization failed!\n"); + GNUNET_free(nrb); return; //FIXME what to do } @@ -1698,7 +1699,7 @@ process_shorten_pseu_lookup_ns(void *cls, (struct GNUNET_GNS_ResolverHandle *)cls; struct GNUNET_TIME_Relative remaining_time; - + GNUNET_TIME_absolute_get_remaining (expire); rh->status = 0; if (name != NULL) @@ -2158,7 +2159,7 @@ send_shorten_response(const char* name, struct ClientShortenHandle *csh) if (name == NULL) { - name = '\0'; + name = ""; } rmsg = GNUNET_malloc(sizeof(struct GNUNET_GNS_ClientShortenResultMessage)