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);