diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-25 10:32:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-25 10:32:12 +0000 |
commit | 55540bdd8ce5ab9cbcbcdb37fa8851fd90a95253 (patch) | |
tree | ff5e97a5f230088da09ca72573157f09ecbd7487 /src/statistics/gnunet-service-statistics.c | |
parent | 3fdda0a7448b87ebb5b4704682bd54c2b04c189d (diff) | |
download | gnunet-55540bdd8ce5ab9cbcbcdb37fa8851fd90a95253.tar.gz gnunet-55540bdd8ce5ab9cbcbcdb37fa8851fd90a95253.zip |
-fix leak
Diffstat (limited to 'src/statistics/gnunet-service-statistics.c')
-rw-r--r-- | src/statistics/gnunet-service-statistics.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
192 | rh = GNUNET_BIO_read_open (fn); | 192 | rh = GNUNET_BIO_read_open (fn); |
193 | if (!rh) | 193 | if (!rh) |
194 | { | 194 | { |
195 | GNUNET_free (buf); | ||
195 | GNUNET_free (fn); | 196 | GNUNET_free (fn); |
196 | return; | 197 | return; |
197 | } | 198 | } |
@@ -199,6 +200,7 @@ load (struct GNUNET_SERVER_Handle *server) | |||
199 | { | 200 | { |
200 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "read", fn); | 201 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "read", fn); |
201 | GNUNET_break (GNUNET_OK == GNUNET_BIO_read_close (rh, &emsg)); | 202 | GNUNET_break (GNUNET_OK == GNUNET_BIO_read_close (rh, &emsg)); |
203 | GNUNET_free (buf); | ||
202 | GNUNET_free_non_null (emsg); | 204 | GNUNET_free_non_null (emsg); |
203 | GNUNET_free (fn); | 205 | GNUNET_free (fn); |
204 | return; | 206 | return; |