To: vim_dev@googlegroups.com Subject: Patch 8.0.1702 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1702 Problem: Leaking memory when autocommands make a quickfix list invalid. Solution: Call FreeWild(). (Yegappan Lakshmanan) Files: src/quickfix.c *** ../vim-8.0.1701/src/quickfix.c 2018-04-08 13:27:35.241518461 +0200 --- src/quickfix.c 2018-04-12 20:32:36.947625084 +0200 *************** *** 4556,4562 **** --- 4556,4565 ---- /* Check whether the quickfix list is still valid. When loading a * buffer above, autocommands might have changed the quickfix list. */ if (!vgr_qflist_valid(wp, qi, save_qfid, *eap->cmdlinep)) + { + FreeWild(fcount, fnames); goto theend; + } save_qfid = qi->qf_lists[qi->qf_curlist].qf_id; if (buf == NULL) *** ../vim-8.0.1701/src/version.c 2018-04-12 20:23:43.495157918 +0200 --- src/version.c 2018-04-12 20:33:39.647221013 +0200 *************** *** 764,765 **** --- 764,767 ---- { /* Add new patch number below this line */ + /**/ + 1702, /**/ -- Keep America beautiful. Swallow your beer cans. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///