From: Eric Leblond Date: Fri, 4 Mar 2016 12:50:26 +0000 (+0100) Subject: output-tx: fix memleak X-Git-Tag: suricata-3.0.1RC1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c755b5fc7b2d0148344db2c6d09eb67f537cb9b;p=thirdparty%2Fsuricata.git output-tx: fix memleak This fixes: Direct leak of 31752 byte(s) in 3969 object(s) allocated from: #0 0x4c396b in malloc (/opt/suricata-asan/bin/suricata+0x4c396b) #1 0xe385b9 in OutputTxLogThreadInit /home/pmanev/sandnet-qa/stage/oisf/src/output-tx.c:193:34 #2 0x106c255 in TmThreadsSlotPktAcqLoop /home/pmanev/sandnet-qa/stage/oisf/src/tm-threads.c:295:17 #3 0x7fbc9fcb3181 in start_thread /build/eglibc-3GlaMS/eglibc-2.19/nptl/pthread_create.c:312 --- diff --git a/src/output-tx.c b/src/output-tx.c index 93ba995604..e05c540a07 100644 --- a/src/output-tx.c +++ b/src/output-tx.c @@ -260,6 +260,8 @@ static TmEcode OutputTxLogThreadDeinit(ThreadVars *tv, void *thread_data) store = next_store; logger = logger->next; } + + SCFree(op_thread_data); return TM_ECODE_OK; }