Skip to content

Commit

Permalink
Fixed: Unaligned free used after aligned alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbiely committed Jul 16, 2024
1 parent f19b294 commit 7fb3f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gaia/mem/data_layout_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ namespace gaia {
static void free(void* pData, [[maybe_unused]] size_t cnt) noexcept {
if (pData == nullptr)
return;
return mem::AllocHelper::free<Allocator>(pData);
return mem::AllocHelper::free_alig<Allocator>(pData);
}

GAIA_NODISCARD constexpr static ValueType get(std::span<const uint8_t> s, size_t idx) noexcept {
Expand Down

0 comments on commit 7fb3f35

Please sign in to comment.