Skip to content

Commit

Permalink
valgrind fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikea committed Jun 13, 2024
1 parent 425012b commit 53a11ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array.c++
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ array_p array::create_slice(array* x, size_t n, const void* p) {
}

array::~array() {
if (t == T_ARR) DO(i, n) data<arr_t>()[i].get()->~array();
if (t == T_ARR) DO(i, n) data<arr_t>()[i].~array_p();
if (simd_aligned()) free(p);
}

0 comments on commit 53a11ab

Please sign in to comment.