File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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 {
183183
184184 let data = BIO_get_data ( bio) ;
185185 assert ! ( !data. is_null( ) ) ;
186- Box :: < StreamState < S > > :: from_raw ( data as * mut _ ) ;
186+ drop ( Box :: < StreamState < S > > :: from_raw ( data as * mut _ ) ) ;
187187 BIO_set_data ( bio, ptr:: null_mut ( ) ) ;
188188 BIO_set_init ( bio, 0 ) ;
189189 1
@@ -257,7 +257,7 @@ cfg_if! {
257257 impl Drop for BIO_METHOD {
258258 fn drop( & mut self ) {
259259 unsafe {
260- Box :: <ffi:: BIO_METHOD >:: from_raw( self . 0 ) ;
260+ drop ( Box :: <ffi:: BIO_METHOD >:: from_raw( self . 0 ) ) ;
261261 }
262262 }
263263 }
Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ unsafe extern "C" fn free_data_box<T>(
558558 _argp : * mut c_void ,
559559) {
560560 if !ptr. is_null ( ) {
561- Box :: < T > :: from_raw ( ptr as * mut T ) ;
561+ drop ( Box :: < T > :: from_raw ( ptr as * mut T ) ) ;
562562 }
563563}
564564
You can’t perform that action at this time.
0 commit comments