mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
c1961ee0df
commit
00a27a808c
@ -17436,6 +17436,7 @@ void ex_function(exarg_T *eap)
|
|||||||
for (i = 0; i < newargs.ga_len; ++i)
|
for (i = 0; i < newargs.ga_len; ++i)
|
||||||
if (STRCMP(((char_u **)(newargs.ga_data))[i], arg) == 0) {
|
if (STRCMP(((char_u **)(newargs.ga_data))[i], arg) == 0) {
|
||||||
EMSG2(_("E853: Duplicate argument name: %s"), arg);
|
EMSG2(_("E853: Duplicate argument name: %s"), arg);
|
||||||
|
vim_free(arg);
|
||||||
goto erret;
|
goto erret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,6 +202,11 @@ static char *(features[]) = {
|
|||||||
|
|
||||||
static int included_patches[] = {
|
static int included_patches[] = {
|
||||||
// Add new patch number below this line
|
// Add new patch number below this line
|
||||||
|
192,
|
||||||
|
//191,
|
||||||
|
//190,
|
||||||
|
//189,
|
||||||
|
//188,
|
||||||
187,
|
187,
|
||||||
186,
|
186,
|
||||||
//185,
|
//185,
|
||||||
|
Loading…
Reference in New Issue
Block a user