From 356a6ab0ea4503617a5bf0b021d1b936ad417e99 Mon Sep 17 00:00:00 2001 From: John Thacker Date: Tue, 31 May 2022 22:08:13 -0400 Subject: [PATCH] file: Free fname_new when rename successful. Plug a memory leak. --- file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/file.c b/file.c index 52e069e8c2..a3d088f70e 100644 --- a/file.c +++ b/file.c @@ -4932,6 +4932,7 @@ cf_save_records(capture_file *cf, const char *fname, guint save_format, #endif goto fail; } + g_free(fname_new); } /* If this was a temporary file, and we didn't do the save by doing