diff --git a/src/Common/RadixSort.h b/src/Common/RadixSort.h index 7ceb8569bd1..bcb3b6bb383 100644 --- a/src/Common/RadixSort.h +++ b/src/Common/RadixSort.h @@ -39,12 +39,12 @@ struct RadixSortMallocAllocator { void * allocate(size_t size) { - return malloc(size); + return new char[size]; } void deallocate(void * ptr, size_t /*size*/) { - return free(ptr); + return delete[](ptr); } };