mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
Update minifiercompetition.cpp (#1353)
as described in the description for the allocate_padded_buffer function: // The caller is responsible to free the memory (e.g., delete [] (...)). but your code used the function free. I propose to fix this error.
This commit is contained in:
@@ -190,7 +190,7 @@ int main(int argc, char *argv[]) {
|
||||
simdjson::SUCCESS, memcpy(buffer, mini_buffer, p.size()), repeat, volume,
|
||||
!just_data);
|
||||
|
||||
free(buffer);
|
||||
delete [] buffer;
|
||||
free(ast_buffer);
|
||||
free(mini_buffer);
|
||||
delete [] mini_buffer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user