@@ -151,7 +151,7 @@ ffi_fn! {
151151
152152ffi_fn ! {
153153 fn rure_free( re: * const Regex ) {
154- unsafe { Box :: from_raw( re as * mut Regex ) ; }
154+ unsafe { drop ( Box :: from_raw( re as * mut Regex ) ) ; }
155155 }
156156}
157157
@@ -260,7 +260,7 @@ ffi_fn! {
260260 while let Some ( ptr) = it. name_ptrs. pop( ) {
261261 drop( CString :: from_raw( ptr) ) ;
262262 }
263- Box :: from_raw( it) ;
263+ drop ( Box :: from_raw( it) ) ;
264264 }
265265 }
266266}
@@ -316,7 +316,7 @@ ffi_fn! {
316316
317317ffi_fn ! {
318318 fn rure_iter_free( it: * mut Iter ) {
319- unsafe { Box :: from_raw( it) ; }
319+ unsafe { drop ( Box :: from_raw( it) ) ; }
320320 }
321321}
322322
@@ -407,7 +407,7 @@ ffi_fn! {
407407
408408ffi_fn ! {
409409 fn rure_captures_free( captures: * const Captures ) {
410- unsafe { Box :: from_raw( captures as * mut Captures ) ; }
410+ unsafe { drop ( Box :: from_raw( captures as * mut Captures ) ) ; }
411411 }
412412}
413413
@@ -447,7 +447,7 @@ ffi_fn! {
447447
448448ffi_fn ! {
449449 fn rure_options_free( options: * mut Options ) {
450- unsafe { Box :: from_raw( options) ; }
450+ unsafe { drop ( Box :: from_raw( options) ) ; }
451451 }
452452}
453453
@@ -527,7 +527,7 @@ ffi_fn! {
527527
528528ffi_fn ! {
529529 fn rure_set_free( re: * const RegexSet ) {
530- unsafe { Box :: from_raw( re as * mut RegexSet ) ; }
530+ unsafe { drop ( Box :: from_raw( re as * mut RegexSet ) ) ; }
531531 }
532532}
533533
0 commit comments