Skip to content

Instantly share code, notes, and snippets.

@tarcisio-marinho
Created December 13, 2017 17:48
Show Gist options
  • Save tarcisio-marinho/588fe2270b838cb93a32f0df88219ecd to your computer and use it in GitHub Desktop.
Save tarcisio-marinho/588fe2270b838cb93a32f0df88219ecd to your computer and use it in GitHub Desktop.
deallocate memory
/* Free the linked lists*/
destroy(&files);
destroy(&encrypted);
destroy(&not_encrypted);
/* Free the path variables */
free(home);
free(desktop);
free(username);
free(trash);
free(media);
free(test_path);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment