File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ unsafe extern "C" fn destroy<S>(bio: *mut BIO) -> c_int {
183
183
184
184
let data = BIO_get_data ( bio) ;
185
185
assert ! ( !data. is_null( ) ) ;
186
- Box :: < StreamState < S > > :: from_raw ( data as * mut _ ) ;
186
+ drop ( Box :: < StreamState < S > > :: from_raw ( data as * mut _ ) ) ;
187
187
BIO_set_data ( bio, ptr:: null_mut ( ) ) ;
188
188
BIO_set_init ( bio, 0 ) ;
189
189
1
@@ -257,7 +257,7 @@ cfg_if! {
257
257
impl Drop for BIO_METHOD {
258
258
fn drop( & mut self ) {
259
259
unsafe {
260
- Box :: <ffi:: BIO_METHOD >:: from_raw( self . 0 ) ;
260
+ drop ( Box :: <ffi:: BIO_METHOD >:: from_raw( self . 0 ) ) ;
261
261
}
262
262
}
263
263
}
Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ unsafe extern "C" fn free_data_box<T>(
558
558
_argp : * mut c_void ,
559
559
) {
560
560
if !ptr. is_null ( ) {
561
- Box :: < T > :: from_raw ( ptr as * mut T ) ;
561
+ drop ( Box :: < T > :: from_raw ( ptr as * mut T ) ) ;
562
562
}
563
563
}
564
564
You can’t perform that action at this time.
0 commit comments