Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Enable LeakSanitizer in bindings-rust-asan #820

Closed
wants to merge 5 commits into from
Closed
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
4 changes: 1 addition & 3 deletions bindings/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ pub fn validate<T: AsRef<[u8]>>(input: T) -> Result<(), String> {
pub struct Module(ConstNonNull<sys::FizzyModule>);

impl Drop for Module {
fn drop(&mut self) {
unsafe { sys::fizzy_free_module(self.0.as_ptr()) }
}
fn drop(&mut self) {}
}

impl Clone for Module {
Expand Down
1 change: 1 addition & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ jobs:
command: |
export RUSTFLAGS="-Z sanitizer=address -C opt-level=0"
export RUSTDOCFLAGS=$RUSTFLAGS
export ASAN_OPTIONS=detect_leaks=0
cargo +nightly test --target x86_64-unknown-linux-gnu

bindings-rust-coverage:
Expand Down