MCPcopy Index your code
hub / github.com/1Password/zeroizing-alloc / dealloc

Method dealloc

src/lib.rs:87–90  ·  view source on GitHub ↗
(&self, ptr: *mut u8, layout: Layout)

Source from the content-addressed store, hash-verified

85
86 #[inline]
87 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
88 zero(ptr, layout.size());
89 self.0.dealloc(ptr, layout);
90 }
91
92 #[inline]
93 unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {

Callers

nothing calls this directly

Calls 1

zeroFunction · 0.85

Tested by

no test coverage detected