| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.922 |
| 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.4.922 |
| Problem: Leaking memory with ":helpt {dir-not-exists}". |
| Solution: Free dirname. (Dominique Pelle) |
| Files: src/ex_cmds.c |
| |
| |
| |
| |
| |
| *** 6574,6579 **** |
| --- 6574,6580 ---- |
| if (dirname == NULL || !mch_isdir(dirname)) |
| { |
| EMSG2(_("E150: Not a directory: %s"), eap->arg); |
| + vim_free(dirname); |
| return; |
| } |
| |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 922, |
| /**/ |
| |
| -- |
| I AM THANKFUL... |
| ...for all the complaining I hear about the government |
| because it means we have freedom of speech. |
| |
| /// 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 /// |