MCPcopy Create free account
hub / github.com/carlos-al/user-kernel-syscall-hook / dealloc

Method dealloc

agent/src/allocator.rs:45–57  ·  view source on GitHub ↗
(&self, ptr: *mut u8, _layout: Layout)

Source from the content-addressed store, hash-verified

43 }
44
45 unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) {
46 let handle = self.handle.get_or_init(|| {
47 RtlCreateHeap(
48 HEAP_GROWABLE,
49 null_mut(),
50 0,
51 0,
52 null_mut() as _,
53 null_mut() as _,
54 )
55 });
56 RtlFreeHeap(*handle, 0, null_mut());
57 }
58}
59
60impl UserlandAllocator {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected