Skip to content

Instantly share code, notes, and snippets.

@djsmith42
Last active August 29, 2015 14:02
Show Gist options
  • Save djsmith42/a6681f1b50946f1ff35d to your computer and use it in GitHub Desktop.
Save djsmith42/a6681f1b50946f1ff35d to your computer and use it in GitHub Desktop.
void my_function() {
char *data = malloc(1024);
return; // oops! memory leak
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment