From a02f4ebb1956990d233a60fa64b4c5d49a5c44d1 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 28 Oct 2018 23:23:54 -0400 Subject: [PATCH] add missing deallocate_small thread_seal_metadata --- malloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/malloc.c b/malloc.c index e135f01..29c14c7 100644 --- a/malloc.c +++ b/malloc.c @@ -1245,6 +1245,7 @@ EXPORT void h_free(void *p) { if (p >= ro.slab_region_start && p < ro.slab_region_end) { thread_unseal_metadata(); deallocate_small(p, NULL); + thread_seal_metadata(); return; } @@ -1264,6 +1265,7 @@ EXPORT void h_free_sized(void *p, size_t expected_size) { thread_unseal_metadata(); expected_size = get_size_info(adjust_size_for_canaries(expected_size)).size; deallocate_small(p, &expected_size); + thread_seal_metadata(); return; }