diff options
Diffstat (limited to 'src/libutil/heap.c')
-rw-r--r-- | src/libutil/heap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/heap.c b/src/libutil/heap.c index ae8e14131..601eb7893 100644 --- a/src/libutil/heap.c +++ b/src/libutil/heap.c @@ -90,7 +90,7 @@ rspamd_min_heap_create (gsize reserved_size) { struct rspamd_min_heap *heap; - heap = g_slice_alloc (sizeof (*heap)); + heap = g_malloc (sizeof (*heap)); heap->ar = g_ptr_array_sized_new (reserved_size); return heap; @@ -185,7 +185,7 @@ rspamd_min_heap_destroy (struct rspamd_min_heap *heap) { if (heap) { g_ptr_array_free (heap->ar, TRUE); - g_slice_free1 (sizeof (*heap), heap); + g_free (heap); } } |