Permalink
Browse files

Fix memory leak when tubes are freed

clear the queue for delayed jobs when a tube is freed
  • Loading branch information...
1 parent b9df373 commit 88a2f919dcb661d1b0a270b104ce0972b4000435 @gbarr gbarr committed Nov 27, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 tube.c
View
1 tube.c
@@ -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);
}

0 comments on commit 88a2f91

Please sign in to comment.