summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-01 17:02:16 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-01 17:02:16 +0200
commit8617348e2110c2c8387ea448a6258f1effa8d249 (patch)
treefab9e6b710dba337eb5439160f84e2fead1103cf /src/option.c
parentb4367b7fb65f6a88f76ef99f79342341af0b1017 (diff)
downloadvim-git-8617348e2110c2c8387ea448a6258f1effa8d249.tar.gz
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/option.c')
-rw-r--r--src/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c
index 51e75c330..3d408143e 100644
--- a/src/option.c
+++ b/src/option.c
@@ -686,7 +686,7 @@ set_local_options_default(win_T *wp, int do_buffer)
&& (do_buffer || (p->indir & PV_BUF) == 0)
&& !(options[i].flags & P_NODEFAULT)
&& !optval_default(p, varp, FALSE))
- set_option_default(i, OPT_LOCAL, FALSE);
+ set_option_default(i, OPT_FREE|OPT_LOCAL, FALSE);
}
unblock_autocmds();