fix codesonar finding 2366.9987
authorxrs <xrs@mail36.net>
Tue, 3 Jul 2018 20:47:49 +0000 (22:47 +0200)
committerxrs <xrs@mail36.net>
Tue, 3 Jul 2018 20:47:49 +0000 (22:47 +0200)
src/arm/test_exponential_backoff.c

index 4a7d51bc79e923afe1f18e44f32954737be7c92f..71c98211a530f909c36405e86399a7a33bccddc3 100644 (file)
@@ -343,7 +343,10 @@ init ()
   cfg = GNUNET_CONFIGURATION_create ();
   if (GNUNET_OK != GNUNET_CONFIGURATION_parse (cfg,
                                                "test_arm_api_data.conf"))
+  {
+    GNUNET_free (cfg);
     return GNUNET_SYSERR;
+  }
   if (NULL == getcwd (pwd, PATH_MAX))
     return GNUNET_SYSERR;
   GNUNET_assert (0 < GNUNET_asprintf (&binary,