File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ pub mod libfunc_counter_runtime {
230
230
use crate :: {
231
231
error:: Result ,
232
232
metadata:: { libfunc_counter:: LibfuncCounterMeta , MetadataStorage } ,
233
- utils:: libc_malloc,
233
+ utils:: { libc_free , libc_malloc} ,
234
234
} ;
235
235
236
236
/// Contains an array of vector for each execution completed.
@@ -287,7 +287,7 @@ pub mod libfunc_counter_runtime {
287
287
}
288
288
289
289
pub extern "C" fn get_counters_array ( ) -> * mut u32 {
290
- COUNTERS_ARRAY . with ( |x| x. get ( ) ) as * mut u32
290
+ COUNTERS_ARRAY . with ( |x| x. get ( ) )
291
291
}
292
292
293
293
/// Converts the pointer to the counters into a Rust `Vec` and store it. Then, it frees the pointer.
@@ -302,6 +302,6 @@ pub mod libfunc_counter_runtime {
302
302
. unwrap ( )
303
303
. insert ( * counter_id_ptr, counters_vec) ;
304
304
305
- libc :: free ( counter_array_ptr as * mut libc:: c_void ) ;
305
+ libc_free ( counter_array_ptr as * mut libc:: c_void ) ;
306
306
}
307
307
}
You can’t perform that action at this time.
0 commit comments