mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 01:26:32 +00:00
add missing null ptr check in alloc example `alloc` can return null on OOM, if I understood correctly. So we should never just deref a pointer we get from `alloc`.