diff --git a/src/log-httplog.c b/src/log-httplog.c index a0911c37dc..ca7bc01732 100644 --- a/src/log-httplog.c +++ b/src/log-httplog.c @@ -388,6 +388,7 @@ TmEcode LogHttpLogThreadInit(ThreadVars *t, void *initdata, void **data) aft->buffer = MemBufferCreateNew(OUTPUT_BUFFER_SIZE); if (aft->buffer == NULL) { + SCFree(aft); return TM_ECODE_FAILED; }