diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-10-19 11:32:39 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-10-19 11:32:39 +0000 |
commit | 306a56a2777fa2bc41d433c05f8feec6c7585dd0 (patch) | |
tree | a8d542aae1b55ee2e24312119b089d014f977f90 /src | |
parent | 811c9c5e3c948f07eb75111316f700669891278a (diff) |
cleaner
git-svn-id: https://gnunet.org/svn/gnunet@9197 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src')
-rw-r--r-- | src/util/container_bloomfilter.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/util/container_bloomfilter.c b/src/util/container_bloomfilter.c index 612bad92ff..1ed09296d1 100644 --- a/src/util/container_bloomfilter.c +++ b/src/util/container_bloomfilter.c @@ -551,11 +551,9 @@ GNUNET_CONTAINER_bloomfilter_free (struct GNUNET_CONTAINER_BloomFilter *bf) { if (NULL == bf) return; - if (bf->filename != NULL) - { - GNUNET_DISK_file_close (bf->fh); - GNUNET_free (bf->filename); - } + if (bf->fh != NULL) + GNUNET_DISK_file_close (bf->fh); + GNUNET_free_non_null (bf->filename); GNUNET_free (bf->bitArray); GNUNET_free (bf); } |