@@ -151,7 +151,7 @@ ffi_fn! {
151
151
152
152
ffi_fn ! {
153
153
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 ) ) ; }
155
155
}
156
156
}
157
157
@@ -260,7 +260,7 @@ ffi_fn! {
260
260
while let Some ( ptr) = it. name_ptrs. pop( ) {
261
261
drop( CString :: from_raw( ptr) ) ;
262
262
}
263
- Box :: from_raw( it) ;
263
+ drop ( Box :: from_raw( it) ) ;
264
264
}
265
265
}
266
266
}
@@ -316,7 +316,7 @@ ffi_fn! {
316
316
317
317
ffi_fn ! {
318
318
fn rure_iter_free( it: * mut Iter ) {
319
- unsafe { Box :: from_raw( it) ; }
319
+ unsafe { drop ( Box :: from_raw( it) ) ; }
320
320
}
321
321
}
322
322
@@ -407,7 +407,7 @@ ffi_fn! {
407
407
408
408
ffi_fn ! {
409
409
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 ) ) ; }
411
411
}
412
412
}
413
413
@@ -447,7 +447,7 @@ ffi_fn! {
447
447
448
448
ffi_fn ! {
449
449
fn rure_options_free( options: * mut Options ) {
450
- unsafe { Box :: from_raw( options) ; }
450
+ unsafe { drop ( Box :: from_raw( options) ) ; }
451
451
}
452
452
}
453
453
@@ -527,7 +527,7 @@ ffi_fn! {
527
527
528
528
ffi_fn ! {
529
529
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 ) ) ; }
531
531
}
532
532
}
533
533
0 commit comments