From 8e53b80b893a839fe6be76d626573097f05b6fe4 Mon Sep 17 00:00:00 2001 From: nikitamikhaylov Date: Wed, 25 Nov 2020 19:50:07 +0300 Subject: [PATCH] done --- src/Common/RadixSort.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } };