Created
March 26, 2018 12:37
-
-
Save CodeSandwich/6ca65d3a4e3b82ef4cc77acd6d08198d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main { | |
A = allocate() // acquire | |
do_stuff(A) // use | |
release(A) // release | |
release(A) // <RUN TIME FAIL> release invalid pointer | |
// delete pointer | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment