From: Ben Pfaff Date: Mon, 4 Jul 2005 05:48:04 +0000 (+0000) Subject: (cmd_match_files) Fix memory leak on `by' and on `vfm_source'. X-Git-Tag: v0.4.0~48 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc4eb33f68d5eebae670115752d3994f4f3d5c41;p=pspp-builds.git (cmd_match_files) Fix memory leak on `by' and on `vfm_source'. --- 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;