3 releases

0.1.2 Oct 1, 2019
0.1.1 Oct 1, 2019
0.1.0 Oct 1, 2019

#475 in Memory management

Apache-2.0

4KB

zeroize_alloc

This crate zeros all memory before freeing it, so if you keep secrets on the heap, you can be sure they no longer exist once they are freed.

Usage

#[global_allocator]
static ALLOC: zeroize_alloc::ZeroizingAlloc<YourAllocator> = ZeroizingAlloc(YourAllocator);

If you want to use the default allocator, use std::alloc::System.

No runtime deps

Features