flow: clean up recycle queue at shutdown

Mostly for tests that don't start the recycler thread, make sure
all flows are cleaned up.
pull/1058/head
Victor Julien 11 years ago
parent 4aff4c650f
commit 52b0ec027e

@ -444,10 +444,13 @@ void FlowShutdown(void)
FlowPrintStats(); FlowPrintStats();
/* free spare queue */ /* free queues */
while((f = FlowDequeue(&flow_spare_q))) { while((f = FlowDequeue(&flow_spare_q))) {
FlowFree(f); FlowFree(f);
} }
while((f = FlowDequeue(&flow_recycle_q))) {
FlowFree(f);
}
/* clear and free the hash */ /* clear and free the hash */
if (flow_hash != NULL) { if (flow_hash != NULL) {

Loading…
Cancel
Save