Hi
Attached patch fixes a memory leak in Vim-7.4.191
whenever error E853 happens. Typing for example
the following erroneous Ex command n times will
leak n blocks:
:function Foobar(arg1, arg1)
The leak was introduced in Vim-7.3.325.
Regards
Dominique
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
diff -r a073747c2a1e src/eval.c
--- a/src/eval.c Sun Feb 23 23:39:14 2014 +0100
+++ b/src/eval.c Mon Feb 24 00:56:20 2014 +0100
@@ -21457,6 +21457,7 @@
if (STRCMP(((char_u **)(newargs.ga_data))[i], arg) == 0)
{
EMSG2(_("E853: Duplicate argument name: %s"), arg);
+ vim_free(arg);
goto erret;
}