coverity bugs
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 24 Sep 2012 12:49:48 +0000 (12:49 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 24 Sep 2012 12:49:48 +0000 (12:49 +0000)
src/gns/gns_api.c
src/gns/gnunet-gns.c
src/transport/transport-testing.c

index f9e563fda1213f3b71d9f123edf06120cd910a63..8d0fe6e993ba5e85171ec2f4900dc531a0fbea26 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) +
index f06bf0d7ba23eba854158db61c917970cf48b5bd..068a9266ec6d51c3f0d114662e03a1c9ebcec23a 100644 (file)
@@ -246,6 +246,7 @@ run (void *cls, char *const *args, const char *cfgfile,
     if (! raw)
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                  "Using private zone: %s!\n", &zonename);
+    GNUNET_CRYPTO_rsa_key_free (private_key);
   }
   
   if (NULL != lookup_type)
index f6bfa289c6a60f8438063244db881886c7752b28..035b8fe8ef41448ff5fdeb98f4506a4909eaaff2 100644 (file)
@@ -278,9 +278,10 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth
                      "Testing library failed to create unique configuration based on `%s': `%s'\n",
                      cfgname, emsg);
     GNUNET_TRANSPORT_TESTING_stop_peer (tth, p);
+    GNUNET_free_non_null (emsg);
     return NULL;
   }
-
+  GNUNET_free_non_null (emsg);
   if (GNUNET_OK != GNUNET_TESTING_peer_start (p->peer))
   {
     GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "transport-testing",