diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 19:18:43 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 19:18:43 +0300 |
commit | f972cde13ca98f6ed992a288826467abf04c888a (patch) | |
tree | 6569ef0e15b85f4e23aac48c99c5fcc97d679a07 /src/mem_pool.c | |
parent | 186f9ab430c1f20efb595da504570fd0b575836a (diff) | |
download | rspamd-f972cde13ca98f6ed992a288826467abf04c888a.tar.gz rspamd-f972cde13ca98f6ed992a288826467abf04c888a.zip |
* Add ability to check bits from surbl replies
Diffstat (limited to 'src/mem_pool.c')
-rw-r--r-- | src/mem_pool.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem_pool.c b/src/mem_pool.c index eb722fb92..23f25b5f3 100644 --- a/src/mem_pool.c +++ b/src/mem_pool.c @@ -351,7 +351,10 @@ memory_pool_delete (memory_pool_t *pool) /* Call all pool destructors */ while (destructor) { - destructor->func (destructor->data); + /* Avoid calling destructors for NULL pointers */ + if (destructor->data != NULL) { + destructor->func (destructor->data); + } destructor = destructor->prev; } |