From: Christian Grothoff Date: Sun, 22 Nov 2009 19:19:29 +0000 (+0000) Subject: leak X-Git-Tag: initial-import-from-subversion-38251~23022 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4cfbde1860d5a9bb33774f05de3679b3e4bad116;p=oweals%2Fgnunet.git leak --- diff --git a/src/util/test_configuration.c b/src/util/test_configuration.c index 7d87d03a8..9ddd7b3e6 100644 --- a/src/util/test_configuration.c +++ b/src/util/test_configuration.c @@ -221,7 +221,11 @@ checkDiffs (struct GNUNET_CONFIGURATION_Handle *cfgDefault, int option) diffsFileName = GNUNET_DISK_mktemp ("gnunet-test-configurations-diffs.conf"); if (diffsFileName == NULL) - return 1; + { + GNUNET_CONFIGURATION_destroy (cfg); + GNUNET_CONFIGURATION_destroy (cfgDiffs); + return 1; + } GNUNET_CONFIGURATION_write_diffs (cfgDefault, cfg, diffsFileName); GNUNET_CONFIGURATION_destroy (cfg);