-fix tld guessing code
[oweals/gnunet.git] / src / gns / gns_api.c
index f9e563fda1213f3b71d9f123edf06120cd910a63..94142ea882978aef264e2bb97b8e201b37d8ae87 100644 (file)
@@ -837,6 +837,7 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle,
   if (msize > UINT16_MAX)
   {
     GNUNET_break (0);
+    GNUNET_free (pkey_enc);
     return NULL;
   }
   lr = GNUNET_malloc (sizeof (struct GNUNET_GNS_LookupRequest) +
@@ -898,7 +899,7 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle,
  * @param proc_cls closure for processor
  * @return handle to the lookup request
  */
-struct GNUNET_GNS_LookupRequest*
+struct GNUNET_GNS_LookupRequest *
 GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
                    const char *name,
                    enum GNUNET_GNS_RecordType type,