mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
8 lines
166 B
Rust
8 lines
166 B
Rust
use std::alloc::{alloc, dealloc, Layout};
|
|||
|
|||
unsafe fn clean() {
|
|||
let layout = Layout::new::<[u8; 1024]>();
|
|||
let ptr = alloc(layout);
|
|||
dealloc(ptr, layout);
|
|||
}
|