From 7f201c59dee0e04d4eb00902b277e667ce9ad631 Mon Sep 17 00:00:00 2001 From: Soner Tari Date: Sat, 13 May 2023 21:13:17 +0300 Subject: [PATCH] Fix double free, thanks to @disaykin --- src/log.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/log.c b/src/log.c index 61c3b35..7aa6f3c 100644 --- a/src/log.c +++ b/src/log.c @@ -760,7 +760,6 @@ log_content_open(log_content_ctx_t *ctx, global_t *global, dsthost_clean = sys_ip46str_sanitize(dsthost); if (!dsthost_clean) { log_err_level_printf(LOG_CRIT, "Failed to sanitize dsthost\n"); - free(srchost_clean); goto errout; } }