From 2237f1c5e969ca9e1a8b0dea2d476232dca15b07 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 Jul 2011 11:23:10 +0000 Subject: [PATCH] leak --- src/testing/testing_group.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index ccc5e79f1..033ab7d5e 100644 --- a/src/testing/testing_group.c +++ b/src/testing/testing_group.c @@ -5946,7 +5946,7 @@ GNUNET_TESTING_daemons_start(const struct GNUNET_CONFIGURATION_Handle *cfg, "Found file size %llu for hostkeys, expect hostkeys to be size %d\n", fs, HOSTKEYFILESIZE); - if (fs % HOSTKEYFILESIZE != 0) + if (0 != (fs % HOSTKEYFILESIZE)) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "File size %llu seems incorrect for hostkeys...\n", @@ -5960,8 +5960,8 @@ GNUNET_TESTING_daemons_start(const struct GNUNET_CONFIGURATION_Handle *cfg, total_hostkeys); pg->hostkey_data = GNUNET_malloc_large (fs); GNUNET_assert (fs == GNUNET_DISK_file_read (fd, pg->hostkey_data, fs)); - GNUNET_assert(GNUNET_OK == GNUNET_DISK_file_close(fd)); } + GNUNET_assert(GNUNET_OK == GNUNET_DISK_file_close(fd)); } GNUNET_free(hostkeys_file); } -- 2.25.1