diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-08-21 17:05:04 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-08-21 17:05:04 +0400 |
commit | 6aa54cc5032b7bf089df667b567f304108cbd30c (patch) | |
tree | b29f830f91d9d6b2f1f848a616e2a8d82652dd16 /src/bloom.c | |
parent | ca72f2d5e8e90d6dfb61fe407e8b532894a885ac (diff) | |
download | rspamd-6aa54cc5032b7bf089df667b567f304108cbd30c.tar.gz rspamd-6aa54cc5032b7bf089df667b567f304108cbd30c.zip |
* Fix memory leakage in controller
Diffstat (limited to 'src/bloom.c')
-rw-r--r-- | src/bloom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bloom.c b/src/bloom.c index 8c6bf8edc..eebaac009 100644 --- a/src/bloom.c +++ b/src/bloom.c @@ -168,7 +168,7 @@ bloom_create (size_t size, size_t nfuncs, ...) if (!(bloom = g_malloc (sizeof (bloom_filter_t)))) { return NULL; } - if (!(bloom->a = g_new (char, (size + CHAR_BIT - 1) / CHAR_BIT * SIZE_BIT))) { + if (!(bloom->a = g_new0 (char, (size + CHAR_BIT - 1) / CHAR_BIT * SIZE_BIT))) { g_free (bloom); return NULL; } |