Skip to content

Instantly share code, notes, and snippets.

@CodeSandwich
Created March 26, 2018 12:37
Show Gist options
  • Save CodeSandwich/6ca65d3a4e3b82ef4cc77acd6d08198d to your computer and use it in GitHub Desktop.
Save CodeSandwich/6ca65d3a4e3b82ef4cc77acd6d08198d to your computer and use it in GitHub Desktop.
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