From: Christian Grothoff Date: Wed, 25 Jan 2012 10:32:12 +0000 (+0000) Subject: -fix leak X-Git-Tag: initial-import-from-subversion-38251~15121 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=55540bdd8ce5ab9cbcbcdb37fa8851fd90a95253;p=oweals%2Fgnunet.git -fix leak --- diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index 1d636bd25..a890d6d8e 100644 --- a/src/statistics/gnunet-service-statistics.c +++ b/src/statistics/gnunet-service-statistics.c @@ -192,6 +192,7 @@ load (struct GNUNET_SERVER_Handle *server) rh = GNUNET_BIO_read_open (fn); if (!rh) { + GNUNET_free (buf); GNUNET_free (fn); return; } @@ -199,6 +200,7 @@ load (struct GNUNET_SERVER_Handle *server) { GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "read", fn); GNUNET_break (GNUNET_OK == GNUNET_BIO_read_close (rh, &emsg)); + GNUNET_free (buf); GNUNET_free_non_null (emsg); GNUNET_free (fn); return;