| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.742 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.3.742 |
| Problem: Leaking memory when :vimgrep restores the directory. |
| Solution: Free the allocated memory. (Christian Brabandt) |
| Files: src/quickfix.c |
| |
| |
| |
| |
| |
| *** 3515,3520 **** |
| --- 3515,3521 ---- |
| ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd; |
| ex_cd(&ea); |
| } |
| + vim_free(dirname_now); |
| } |
| } |
| |
| |
| |
| |
| *** 727,728 **** |
| --- 727,730 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 742, |
| /**/ |
| |
| -- |
| How many light bulbs does it take to change a person? |
| |
| /// 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 /// |