Skip to content

Commit

Permalink
Add leak
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed May 23, 2022
1 parent 062a205 commit 033950c
Showing 1 changed file with 1 addition and 3 deletions.
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

0 comments on commit 033950c

Please sign in to comment.