diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-02-25 21:39:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-02-25 21:39:17 +0100 |
commit | 14c2e18b63faaa4056d987fd501a68480cb40c5c (patch) | |
tree | 1ac788bd8a245601eb06ad6443e05012c212547b /src/eval.c | |
parent | a12e40351d1357687e8b5dc3122fffef705bdc08 (diff) |
patch 8.0.0371: leaking memory when setting v:completed_itemv8.0.0371
Problem: Leaking memory when setting v:completed_item.
Solution: Or the flags instead of setting them.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 4fc9f743e8..61843bcfba 100644 --- a/src/eval.c +++ b/src/eval.c @@ -6640,7 +6640,7 @@ set_vim_var_dict(int idx, dict_T *val) if (HASHITEM_EMPTY(hi)) continue; --todo; - HI2DI(hi)->di_flags = DI_FLAGS_RO | DI_FLAGS_FIX; + HI2DI(hi)->di_flags |= DI_FLAGS_RO | DI_FLAGS_FIX; } } } |