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

@@ -28,9 +28,6 @@ extern "C"
SNMALLOC_EXPORT void SNMALLOC_NAME_MANGLE(free)(void* ptr)
{
if (ptr == nullptr)
return;
ThreadAlloc::get()->dealloc(ptr);
}