aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/suricata/src/util-logopenfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/suricata/src/util-logopenfile.c')
-rw-r--r--framework/src/suricata/src/util-logopenfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/src/suricata/src/util-logopenfile.c b/framework/src/suricata/src/util-logopenfile.c
index 65b80fac..84e5d2fe 100644
--- a/framework/src/suricata/src/util-logopenfile.c
+++ b/framework/src/suricata/src/util-logopenfile.c
@@ -519,8 +519,10 @@ int LogFileFreeCtx(LogFileCtx *lf_ctx)
SCMutexDestroy(&lf_ctx->fp_mutex);
- if (lf_ctx->prefix != NULL)
+ if (lf_ctx->prefix != NULL) {
SCFree(lf_ctx->prefix);
+ lf_ctx->prefix_len = 0;
+ }
if(lf_ctx->filename != NULL)
SCFree(lf_ctx->filename);