Project

General

Profile

Actions

Bug #1321

closed

Flow memuse bookkeeping error

Added by Ken Steele about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

There appears to be a mismatch between increase flow_memuse when allocating a new flow and decrementing it when freeing the flow.

In flow-util.c:

FlowAlloc() adds sizeof(Flow) + FlowStorageSize() to flow_memuse
FlowFree() subtracts sizeof(Flow)

So for each flow created and destroyed, flowmemcap incorrectly is larger by FlowStorageSize()

Actions

Also available in: Atom PDF