comparison src/option.c @ 18225:6c3a8312486d v8.1.2107

patch 8.1.2107: various memory leaks reported by asan Commit: https://github.com/vim/vim/commit/8617348e2110c2c8387ea448a6258f1effa8d249 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 1 17:02:16 2019 +0200 patch 8.1.2107: various memory leaks reported by asan Problem: Various memory leaks reported by asan. Solution: Free the memory. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/5003)
author Bram Moolenaar <Bram@vim.org>
date Tue, 01 Oct 2019 17:15:04 +0200
parents e0ec4cd7a865
children 85160a3649b9
comparison
equal deleted inserted replaced
18224:96632a3c3d90 18225:6c3a8312486d
684 684
685 if (p->indir != PV_NONE 685 if (p->indir != PV_NONE
686 && (do_buffer || (p->indir & PV_BUF) == 0) 686 && (do_buffer || (p->indir & PV_BUF) == 0)
687 && !(options[i].flags & P_NODEFAULT) 687 && !(options[i].flags & P_NODEFAULT)
688 && !optval_default(p, varp, FALSE)) 688 && !optval_default(p, varp, FALSE))
689 set_option_default(i, OPT_LOCAL, FALSE); 689 set_option_default(i, OPT_FREE|OPT_LOCAL, FALSE);
690 } 690 }
691 691
692 unblock_autocmds(); 692 unblock_autocmds();
693 curwin = save_curwin; 693 curwin = save_curwin;
694 curbuf = curwin->w_buffer; 694 curbuf = curwin->w_buffer;