Skip to content

Commit

Permalink
[c++] Fix heap corruption in fastercsx (#3365)
Browse files Browse the repository at this point in the history
* [c++] Fix heap corruption in `fastercsx`

* switch from `malloc`/`free` to `new[]`/`delete[]`
  • Loading branch information
johnkerl authored Nov 21, 2024
1 parent ea3cd1a commit f17d55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtiledbsoma/src/external/include/thread_pool/status.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
if (p) { \
delete[] p; \
}
#define tdb_new_array(T, size) (T*)malloc(size * sizeof(T))
#define tdb_new_array(T, size) (new T[size])

namespace tiledbsoma {

Expand Down

0 comments on commit f17d55c

Please sign in to comment.