diff options
-rw-r--r-- | src/libutil/radix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libutil/radix.c b/src/libutil/radix.c index 3ca4c8716..39fc39445 100644 --- a/src/libutil/radix.c +++ b/src/libutil/radix.c @@ -537,8 +537,10 @@ radix_create_compressed (void) void radix_destroy_compressed (radix_compressed_t *tree) { - rspamd_mempool_delete (tree->pool); - g_slice_free1 (sizeof (*tree), tree); + if (tree) { + rspamd_mempool_delete (tree->pool); + g_slice_free1 (sizeof (*tree), tree); + } } uintptr_t |