Fix for zero size allocations.

This commit is contained in:
Matthew Parkinson
2019-07-02 15:58:19 +01:00
parent 8970e70806
commit ea399660ce
2 changed files with 2 additions and 3 deletions

View File

@@ -473,6 +473,8 @@ namespace snmalloc
SNMALLOC_SLOW_PATH void dealloc_not_small(void* p, uint8_t size)
{
handle_message_queue();
if (p == nullptr) return;
if (size == PMMediumslab)
{