aboutsummaryrefslogtreecommitdiffstats
path: root/src/bloom.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-08-21 17:05:04 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-08-21 17:05:04 +0400
commit6aa54cc5032b7bf089df667b567f304108cbd30c (patch)
treeb29f830f91d9d6b2f1f848a616e2a8d82652dd16 /src/bloom.c
parentca72f2d5e8e90d6dfb61fe407e8b532894a885ac (diff)
downloadrspamd-6aa54cc5032b7bf089df667b567f304108cbd30c.tar.gz
rspamd-6aa54cc5032b7bf089df667b567f304108cbd30c.zip
* Fix memory leakage in controller
Diffstat (limited to 'src/bloom.c')
-rw-r--r--src/bloom.c2
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;
}