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