mirror of https://github.com/OISF/suricata
Fix memory leak in proto - name mapping
==15745== 3 bytes in 1 blocks are definitely lost in loss record 5 of 615 ==15745== at 0x4C2A2DB: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==15745== by 0x71858C1: strdup (strdup.c:42) ==15745== by 0xA20814: SCProtoNameInit (util-proto-name.c:75) ==15745== by 0x952D1B: PostConfLoadedSetup (suricata.c:1983) ==15745== by 0x9537CD: main (suricata.c:2112) Also, clean up and add a check to make sure it's initialized only once.pull/859/head
parent
bb4def7949
commit
fd6fd9ce48
Loading…
Reference in New Issue