diff options
Diffstat (limited to 'base/allocator')
-rw-r--r-- | base/allocator/win_allocator.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/allocator/win_allocator.cc b/base/allocator/win_allocator.cc index 4b979a0..899b867 100644 --- a/base/allocator/win_allocator.cc +++ b/base/allocator/win_allocator.cc @@ -66,7 +66,8 @@ void* win_heap_memalign(size_t alignment, size_t size) { } void win_heap_memalign_free(void* ptr) { - win_heap_free(static_cast<void**>(ptr)[-1]); + if (ptr) + win_heap_free(static_cast<void**>(ptr)[-1]); } } // extern "C" |