-fix leaks
authorChristian Grothoff <christian@grothoff.org>
Wed, 20 Jun 2012 10:51:20 +0000 (10:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 20 Jun 2012 10:51:20 +0000 (10:51 +0000)
src/testing/gnunet-testing.c

index a6c247ff3e3f00f6bb6401c2c11d204a435fad11..77d2cf4151d925be70580e98f0249d11709eeb4e 100644 (file)
@@ -129,6 +129,7 @@ create_hostkeys (const unsigned int no)
   if (NULL == pk)
   {
     fprintf (stderr, _("Could not extract hostkey %u (offset too large?)\n"), create_no);
+    GNUNET_TESTING_system_destroy (system, GNUNET_YES);
     return 1;
   }
   (void) GNUNET_DISK_directory_create_for_file (create_hostkey);
@@ -146,6 +147,7 @@ create_hostkeys (const unsigned int no)
                   "Wrote hostkey to file: `%s'\n", create_hostkey);
   GNUNET_free (pkb);
   GNUNET_CRYPTO_rsa_key_free (pk);
+  GNUNET_TESTING_system_destroy (system, GNUNET_YES);
   return 0;
 }