Skip to content

Commit

Permalink
fix: fix the missing update to AlignedArray. [#101]
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaz001 committed Aug 2, 2024
1 parent 62cf638 commit 87c33d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hftbacktest/src/backtest/reader/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ where
impl Drop for DataPtr {
fn drop(&mut self) {
if self.managed {
let _ = unsafe { Box::from_raw(self.ptr) };
let _ = unsafe { AlignedArray::<u8, CACHE_LINE_SIZE>::from_raw(self.ptr) };
}
}
}

0 comments on commit 87c33d9

Please sign in to comment.