drop loggers: call disable func

Call OutputDropLoggerDisable() on cleanup.
pull/926/head
Victor Julien 11 years ago
parent 9df045d086
commit f96a54535c

@ -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) {

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

Loading…
Cancel
Save