mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 19:16:36 +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`.