mirror of https://github.com/OISF/suricata
profiling: fix memory leak
For packets that were freed, not recycled, profiling memory wasn't freed: ==15745== 13,312 bytes in 8 blocks are definitely lost in loss record 611 of 615 ==15745== at 0x4C2C494: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==15745== by 0xA190D5: SCProfilePacketStart (util-profiling.c:963) ==15745== by 0x4E4345: PacketGetFromAlloc (decode.c:134) ==15745== by 0x83FE75: FlowForceReassemblyPseudoPacketGet (flow-timeout.c:276) ==15745== by 0x8413BF: FlowForceReassemblyForHash (flow-timeout.c:588) ==15745== by 0x841897: FlowForceReassembly (flow-timeout.c:716) ==15745== by 0x9540F6: main (suricata.c:2296) ==15745== ==15745== 14,976 bytes in 9 blocks are definitely lost in loss record 612 of 615 ==15745== at 0x4C2C494: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==15745== by 0xA190D5: SCProfilePacketStart (util-profiling.c:963) ==15745== by 0x4E4345: PacketGetFromAlloc (decode.c:134) ==15745== by 0x83FE75: FlowForceReassemblyPseudoPacketGet (flow-timeout.c:276) ==15745== by 0x841508: FlowForceReassemblyForHash (flow-timeout.c:620) ==15745== by 0x841897: FlowForceReassembly (flow-timeout.c:716) ==15745== by 0x9540F6: main (suricata.c:2296) This patch addresses that.pull/859/head
parent
3f49eb843d
commit
9eed83c62b
Loading…
Reference in New Issue