This commit is contained in:
nikitamikhaylov 2020-11-25 19:50:07 +03:00
parent 3ab9ac03df
commit 8e53b80b89

View File

@ -39,12 +39,12 @@ struct RadixSortMallocAllocator
{ {
void * allocate(size_t size) void * allocate(size_t size)
{ {
return malloc(size); return new char[size];
} }
void deallocate(void * ptr, size_t /*size*/) void deallocate(void * ptr, size_t /*size*/)
{ {
return free(ptr); return delete[](ptr);
} }
}; };