Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gulshan committed Nov 23, 2023
1 parent 44b485d commit f172ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::config::Config;
fn riti_free<T>(ptr: *mut T) {
if !ptr.is_null() {
unsafe {
Box::from_raw(ptr);
drop(Box::from_raw(ptr));
}
}
}
Expand Down

0 comments on commit f172ba1

Please sign in to comment.