summaryrefslogtreecommitdiffstats
path: root/src/vim9execute.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r--src/vim9execute.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c
index 31b67d183a..673bf91c43 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -2094,6 +2094,7 @@ call_def_function(
if (tv->vval.v_string == NULL
|| *skipwhite(tv->vval.v_string) == NUL)
{
+ vim_free(tv->vval.v_string);
emsg(_(e_throw_with_empty_string));
goto failed;
}