From: Christian Grothoff Date: Fri, 15 Jul 2011 11:23:10 +0000 (+0000) Subject: leak X-Git-Tag: initial-import-from-subversion-38251~17838 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2237f1c5e969ca9e1a8b0dea2d476232dca15b07;p=oweals%2Fgnunet.git leak --- 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); }