aboutsummaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c1
1 files changed, 1 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;
}