From 00a27a808c0384d7d7a25999330f5d0b040c3b47 Mon Sep 17 00:00:00 2001 From: oni-link Date: Thu, 10 Apr 2014 22:12:54 +0200 Subject: [PATCH] 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 --- src/eval.c | 1 + src/version.c | 5 +++++ 2 files changed, 6 insertions(+) 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,