Skip to content

Instantly share code, notes, and snippets.

@CodeSandwich
Created March 26, 2018 12:37
Show Gist options
  • Save CodeSandwich/f773a23fdae2421048699be1b14f031d to your computer and use it in GitHub Desktop.
Save CodeSandwich/f773a23fdae2421048699be1b14f031d to your computer and use it in GitHub Desktop.
main {
A = allocate() // acquire
release(A) // release
do_stuff(A) // <RUN TIME FAIL> use invalid pointer
// delete pointer
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment