diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-01 17:02:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-01 17:02:16 +0200 |
commit | 8617348e2110c2c8387ea448a6258f1effa8d249 (patch) | |
tree | fab9e6b710dba337eb5439160f84e2fead1103cf /src/evalfunc.c | |
parent | b4367b7fb65f6a88f76ef99f79342341af0b1017 (diff) |
patch 8.1.2107: various memory leaks reported by asanv8.1.2107
Problem: Various memory leaks reported by asan.
Solution: Free the memory. (Ozaki Kiichi, closes #5003)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 159b874bf4..26d8691ccf 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -2213,8 +2213,7 @@ f_expand(typval_T *argvars, typval_T *rettv) { if (rettv_list_alloc(rettv) != FAIL && result != NULL) list_append_string(rettv->vval.v_list, result, -1); - else - vim_free(result); + vim_free(result); } else rettv->vval.v_string = result; |