flow: only BUG_ON use_cnt in flows when compiled with debug-validation

pull/237/head
Victor Julien 12 years ago
parent b22a0cffbb
commit 298d21372b

@ -474,7 +474,9 @@ void FlowShutdown(void)
for (u = 0; u < flow_config.hash_size; u++) {
Flow *f = flow_hash[u].head;
while (f) {
#ifdef DEBUG_VALIDATION
BUG_ON(SC_ATOMIC_GET(f->use_cnt) != 0);
#endif
Flow *n = f->hnext;
uint8_t proto_map = FlowGetProtoMapping(f->proto);
FlowClearMemory(f, proto_map);

Loading…
Cancel
Save