From dc4eb33f68d5eebae670115752d3994f4f3d5c41 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 4 Jul 2005 05:48:04 +0000 Subject: [PATCH] (cmd_match_files) Fix memory leak on `by' and on `vfm_source'. --- src/get.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/get.c b/src/get.c index fd949221..32602b35 100644 --- a/src/get.c +++ b/src/get.c @@ -887,6 +887,7 @@ cmd_match_files (void) } } } + free (by); } else if (lex_match_id ("FIRST")) { @@ -1038,6 +1039,9 @@ cmd_match_files (void) procedure (mtf_processing, &mtf); mtf_processing_finish (&mtf); + free_case_source (vfm_source); + vfm_source = NULL; + dict_destroy (default_dict); default_dict = mtf.dict; mtf.dict = NULL; -- 2.30.2