Skip to content

Commit

Permalink
flowworker: don't keep unnecessary flow reference
Browse files Browse the repository at this point in the history
Flow stream/detect/log flush packets, don't hold on to the flow
beyond the flow worker module.

(cherry picked from commit a2dc9a4)
  • Loading branch information
victorjulien committed Feb 7, 2023
1 parent 2b998d2 commit d13bb7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/flow-worker.c
Expand Up @@ -390,6 +390,9 @@ static inline void FlowWorkerStreamTCPUpdate(ThreadVars *tv, FlowWorkerThreadDat

OutputLoggerLog(tv, x, fw->output_thread);

/* no need to keep a flow ref beyond this point */
FlowDeReference(&x->flow);

if (timeout) {
PacketPoolReturnPacket(x);
} else {
Expand Down

0 comments on commit d13bb7f

Please sign in to comment.