mirror of https://github.com/OISF/suricata
tm-queue: unify queue name handling
Queue name was sometimes allocated and sometimes not. This patch updates the behavior of creation function so it is always allocated. This way we can free it at exit and fix memory leak. This fixes: 900 bytes in 110 blocks are definitely lost in loss record 322 of 329 at 0x4C29C0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x803E0A9: strdup (in /lib/x86_64-linux-gnu/libc-2.21.so) by 0x90090E: StoreQueueId (tmqh-flow.c:112) by 0x8FFEA8: TmqhOutputFlowSetupCtx (tmqh-flow.c:180) by 0x908C7F: TmThreadCreate (tm-threads.c:1095) by 0x909982: TmThreadCreatePacketHandler (tm-threads.c:1154) by 0x87906F: RunModeFilePcapAutoFp (runmode-pcap-file.c:188) by 0x88376B: RunModeDispatch (runmodes.c:372) by 0x87F245: UnixSocketPcapFilesCheck (runmode-unix-socket.c:393) by 0x9102B0: UnixCommandBackgroundTasks (unix-manager.c:430) by 0x91405D: UnixManager (unix-manager.c:980) by 0x907773: TmThreadsManagement (tm-threads.c:600) tm-queue: fix logic WIPpull/1910/head
parent
f34fe85cfe
commit
de6a37f17b
Loading…
Reference in New Issue