From f96a54535c2b063404f865e6f16a9c6a5b976c8e Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 10 Apr 2014 08:19:06 +0200 Subject: [PATCH] drop loggers: call disable func Call OutputDropLoggerDisable() on cleanup. --- src/log-droplog.c | 2 ++ src/output-json-drop.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/log-droplog.c b/src/log-droplog.c index 10b4d20836..8487ca0cf8 100644 --- a/src/log-droplog.c +++ b/src/log-droplog.c @@ -120,6 +120,8 @@ static TmEcode LogDropLogThreadDeinit(ThreadVars *t, void *data) */ static void LogDropLogDeInitCtx(OutputCtx *output_ctx) { + OutputDropLoggerDisable(); + if (output_ctx != NULL) { LogFileCtx *logfile_ctx = (LogFileCtx *)output_ctx->data; if (logfile_ctx != NULL) { diff --git a/src/output-json-drop.c b/src/output-json-drop.c index 9d953b1fba..a9cb069e13 100644 --- a/src/output-json-drop.c +++ b/src/output-json-drop.c @@ -186,6 +186,8 @@ static TmEcode JsonDropLogThreadDeinit(ThreadVars *t, void *data) static void JsonDropLogDeInitCtx(OutputCtx *output_ctx) { + OutputDropLoggerDisable(); + LogFileCtx *logfile_ctx = (LogFileCtx *)output_ctx->data; LogFileFreeCtx(logfile_ctx); SCFree(output_ctx);