commit | df2bc27b52944fbb75b8203a22f3ebde172e9c79 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jun 24 22:17:32 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jun 24 22:17:32 2013 +0200 |
tree | 1fbe6adcde429690d4eafa0e59d4911a4d493596 | |
parent | c1c3d68da9d5a089949e8687b8783daf7ee2d416 [diff] [blame] |
updated for version 7.3.1240 Problem: Memory leak in findfile(). Solution: Free the memory. (Christian Brabandt)
diff --git a/src/eval.c b/src/eval.c index c37075b..19b4479 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -10448,7 +10448,7 @@ { do { - if (rettv->v_type == VAR_STRING) + if (rettv->v_type == VAR_STRING || rettv->v_type == VAR_LIST) vim_free(fresult); fresult = find_file_in_path_option(first ? fname : NULL, first ? (int)STRLEN(fname) : 0,