vim-patch:7.4.192

Problem:    Memory leak when giving E853.
Solution:   Free the argument. (Dominique Pelle)

https://code.google.com/p/vim/source/detail?r=04c4ef8c0a1b757494500e46400552b135135e94
This commit is contained in:
oni-link 2014-04-10 22:12:54 +02:00 committed by Thiago de Arruda
parent c1961ee0df
commit 00a27a808c
2 changed files with 6 additions and 0 deletions

View File

@ -17436,6 +17436,7 @@ void ex_function(exarg_T *eap)
for (i = 0; i < newargs.ga_len; ++i)
if (STRCMP(((char_u **)(newargs.ga_data))[i], arg) == 0) {
EMSG2(_("E853: Duplicate argument name: %s"), arg);
vim_free(arg);
goto erret;
}

View File

@ -202,6 +202,11 @@ static char *(features[]) = {
static int included_patches[] = {
// Add new patch number below this line
192,
//191,
//190,
//189,
//188,
187,
186,
//185,