Skip to content
Snippets Groups Projects
Commit ad6ad746 authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

ModSim: Fixed memory leak.

parent 5ca18390
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,9 @@ void rabbit_die(rabbit **ptr) {
if( r == rabbits )
rabbits = r->next;
else
*ptr = NULL;
*ptr = NULL;
rabbit_count--;
free(r);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment