diff options
Diffstat (limited to 'components/allocator/lib.rs')
-rw-r--r-- | components/allocator/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/allocator/lib.rs b/components/allocator/lib.rs index 13f1d876eae..ed9ed7fc5fe 100644 --- a/components/allocator/lib.rs +++ b/components/allocator/lib.rs @@ -21,7 +21,7 @@ mod platform { /// /// Passing a non-heap allocated pointer to this function results in undefined behavior. pub unsafe extern "C" fn usable_size(ptr: *const c_void) -> usize { - tikv_jemallocator::usable_size(ptr) + unsafe { tikv_jemallocator::usable_size(ptr) } } /// Memory allocation APIs compatible with libc |