output-stats: fix memleak

This fixes:

16 bytes in 2 blocks are definitely lost in loss record 69 of 319
   at 0x4C29C0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x85955D: OutputStatsLogThreadInit (output-stats.c:118)
   by 0x4CAE13: StatsMgmtThread (counters.c:352)
   by 0x68DE283: start_thread (pthread_create.c:333)
   by 0x80A6A4C: clone (in /lib/x86_64-linux-gnu/libc-2.21.so)
pull/1910/head
Eric Leblond 10 years ago
parent c2e2174942
commit 55a8f3ce1d

@ -186,6 +186,8 @@ static TmEcode OutputStatsLogThreadDeinit(ThreadVars *tv, void *thread_data)
store = next_store;
logger = logger->next;
}
SCFree(op_thread_data);
return TM_ECODE_OK;
}

Loading…
Cancel
Save