You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zk/tests/fixtures/full-sample/3cut.md

12 lines
321 B
Markdown

---
aliases: [dangling reference]
---
# Dangling pointers
A *dangling pointer* is a reference that is kept to freed data. With C, reading it causes a *segmentation fault*.
Rust protects against *dangling pointers* by making sure data is not freed until it goes out of scope ([Ownership in Rust](88el)).
:programming: