Actions
Bug #979
closedclean up app layer protocol detection memory
Affected Versions:
Effort:
Difficulty:
Label:
Description
Leak detectors go wild on this currently.
Error #36: LEAK 4 direct bytes 0x08e74f40-0x08e74f44 + 0 indirect bytes # 0 replace_malloc [/work/drmemory_package/common/alloc_replace.c:2292] # 1 B2gAddPattern [/home/victor/dev/oisf/src/util-mpm-b2g.c:312] # 2 B2gAddPatternCS [/home/victor/dev/oisf/src/util-mpm-b2g.c:382] # 3 AlpProtoAdd [/home/victor/dev/oisf/src/app-layer-detect-proto.c:222] # 4 RegisterSSHParsers [/home/victor/dev/oisf/src/app-layer-ssh.c:742] # 5 RegisterAppLayerParsers [/home/victor/dev/oisf/src/app-layer-parser.c:1352] # 6 AppLayerDetectProtoThreadInit [/home/victor/dev/oisf/src/app-layer-detect-proto.c:342] # 7 main [/home/victor/dev/oisf/src/suricata.c:1853] Error #37: LEAK 4 direct bytes 0x08e75350-0x08e75354 + 0 indirect bytes # 0 replace_malloc [/work/drmemory_package/common/alloc_replace.c:2292] # 1 B2gAddPattern [/home/victor/dev/oisf/src/util-mpm-b2g.c:312] # 2 B2gAddPatternCS [/home/victor/dev/oisf/src/util-mpm-b2g.c:382] # 3 AlpProtoAdd [/home/victor/dev/oisf/src/app-layer-detect-proto.c:222] # 4 RegisterSMTPParsers [/home/victor/dev/oisf/src/app-layer-smtp.c:850] # 5 RegisterAppLayerParsers [/home/victor/dev/oisf/src/app-layer-parser.c:1353] # 6 AppLayerDetectProtoThreadInit [/home/victor/dev/oisf/src/app-layer-detect-proto.c:342] # 7 main [/home/victor/dev/oisf/src/suricata.c:1853]
This code is being rewritten. Added the ticket to make sure we address it in the new code.
Actions