diff options
author | oni-link <knil.ino@gmail.com> | 2014-04-10 22:12:54 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-11 13:35:22 -0300 |
commit | 00a27a808c0384d7d7a25999330f5d0b040c3b47 (patch) | |
tree | 9694d3d9f9cfad031d8e1499e780fff3a4c764e6 | |
parent | c1961ee0df4ec99de0e6ec0aa8718bb7c263571e (diff) | |
download | rneovim-00a27a808c0384d7d7a25999330f5d0b040c3b47.tar.gz rneovim-00a27a808c0384d7d7a25999330f5d0b040c3b47.tar.bz2 rneovim-00a27a808c0384d7d7a25999330f5d0b040c3b47.zip |
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
-rw-r--r-- | src/eval.c | 1 | ||||
-rw-r--r-- | src/version.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 81b37b50fa..6b6d25ac3e 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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; } diff --git a/src/version.c b/src/version.c index aff9580a25..a716ff5082 100644 --- a/src/version.c +++ b/src/version.c @@ -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, |