Flush fp to be sure before closing.

remotes/origin/master-1.0.x
Victor Julien 15 years ago
parent d3b573348e
commit 655b6acad9

@ -73,6 +73,7 @@ int LogFileFreeCtx(LogFileCtx *lf_ctx)
if (lf_ctx->fp != NULL)
{
SCMutexLock(&lf_ctx->fp_mutex);
fflush(lf_ctx->fp);
fclose(lf_ctx->fp);
SCMutexUnlock(&lf_ctx->fp_mutex);
}

Loading…
Cancel
Save