Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Temporary disable drops because of double free #181

Merged
merged 1 commit into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/runtime/src/integer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Clone for Integer {

impl Drop for Integer {
fn drop(&mut self) {
let _ = unsafe { Box::from_raw(self.data) };
// let _ = unsafe { Box::from_raw(self.data) };
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/runtime/src/rational.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Clone for Rational {

impl Drop for Rational {
fn drop(&mut self) {
let _ = unsafe { Box::from_raw(self.data) };
// let _ = unsafe { Box::from_raw(self.data) };
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/runtime/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Clone for String {

impl Drop for String {
fn drop(&mut self) {
let _ = unsafe { Box::from_raw(self.data) };
// let _ = unsafe { Box::from_raw(self.data) };
}
}

Expand Down
Loading