eve-log: fix mem leak at shutdown

Make sure we free all memory in the shutdown function.
pull/926/head
Victor Julien 11 years ago
parent 90c4834709
commit bc1c06b9e4

@ -469,6 +469,7 @@ OutputCtx *OutputJsonInitCtx(ConfNode *conf)
json_out = json_ctx->json_out;
}
SCLogInfo("returning output_ctx %p", output_ctx);
return output_ctx;
}
@ -477,6 +478,7 @@ static void OutputJsonDeInitCtx(OutputCtx *output_ctx)
OutputJsonCtx *json_ctx = (OutputJsonCtx *)output_ctx->data;
LogFileCtx *logfile_ctx = json_ctx->file_ctx;
LogFileFreeCtx(logfile_ctx);
SCFree(json_ctx);
SCFree(output_ctx);
}

Loading…
Cancel
Save