Skip to content

Instantly share code, notes, and snippets.

@note
Created April 3, 2011 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save note/900399 to your computer and use it in GitHub Desktop.
Save note/900399 to your computer and use it in GitHub Desktop.
/**
* Zwalnia wszyskie bloki pamieci oraz sama liste.
*/
void dispose_list(struct list * l){
struct block * it = l->first, *tmp;
while(it != NULL){
tmp = it->next;
delete_block(it, l);
it = tmp;
}
free(l);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment