aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem_pool.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 19:18:43 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 19:18:43 +0300
commitf972cde13ca98f6ed992a288826467abf04c888a (patch)
tree6569ef0e15b85f4e23aac48c99c5fcc97d679a07 /src/mem_pool.c
parent186f9ab430c1f20efb595da504570fd0b575836a (diff)
downloadrspamd-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.c5
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;
}