MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / dealloc

Function dealloc

plugins/ast/python/src/lib.rs:65–73  ·  view source on GitHub ↗
(pointer: *mut u8, length: usize)

Source from the content-addressed store, hash-verified

63/// `ptr`/`len` must come from a prior `alloc` call.
64#[unsafe(no_mangle)]
65pub unsafe extern "C" fn dealloc(pointer: *mut u8, length: usize) {
66 if pointer.is_null() || length == 0 {
67 return;
68 }
69
70 unsafe {
71 std::alloc::dealloc(pointer, MemoryLayout::from_size_align_unchecked(length, 1));
72 }
73}
74
75// ─── ABI: per-kind parse entry points ───
76

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected