Skip to content

Commit

Permalink
Fix memory leak when tubes are freed
Browse files Browse the repository at this point in the history
clear the queue for delayed jobs when a tube is freed
  • Loading branch information
gbarr committed Nov 27, 2008
1 parent b9df373 commit 88a2f91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tube.c
Expand Up @@ -57,6 +57,7 @@ tube_free(tube t)
{
prot_remove_tube(t);
pq_clear(&t->ready);
pq_clear(&t->delay);
ms_clear(&t->waiting);
free(t);
}
Expand Down

0 comments on commit 88a2f91

Please sign in to comment.