diff options
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index 816837d0af..07a9e52f3a 100644 --- a/src/option.c +++ b/src/option.c @@ -7370,6 +7370,8 @@ option_set_callback_func(char_u *optval UNUSED, callback_T *optcb UNUSED) free_callback(optcb); set_callback(optcb, &cb); + if (cb.cb_free_name) + vim_free(cb.cb_name); free_tv(tv); // when using Vim9 style "import.funcname" it needs to be expanded to |