summaryrefslogtreecommitdiff
path: root/src/proto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-19 18:19:19 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-19 18:19:19 +0200
commita05e524f3aa8eadc2dbd0ad8ff6db9407ac7ac7e (patch)
tree23a248c68456d043903f47c7d545f387a5db2420 /src/proto
parentfdeab65db60929e28640fd740c333f9bcfea0e15 (diff)
downloadvim-git-a05e524f3aa8eadc2dbd0ad8ff6db9407ac7ac7e.tar.gz
patch 8.2.1712: Vim9: leaking memory when calling a lambdav8.2.1712
Problem: Vim9: leaking memory when calling a lambda. Solution: Decrement function reference from ISN_DCALL.
Diffstat (limited to 'src/proto')
-rw-r--r--src/proto/userfunc.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/userfunc.pro b/src/proto/userfunc.pro
index 4e3f2dbf4..aefedf778 100644
--- a/src/proto/userfunc.pro
+++ b/src/proto/userfunc.pro
@@ -12,6 +12,7 @@ char_u *fname_trans_sid(char_u *name, char_u *fname_buf, char_u **tofree, int *e
ufunc_T *find_func_even_dead(char_u *name, int is_global, cctx_T *cctx);
ufunc_T *find_func(char_u *name, int is_global, cctx_T *cctx);
int func_is_global(ufunc_T *ufunc);
+int func_name_refcount(char_u *name);
void copy_func(char_u *lambda, char_u *global);
int call_user_func_check(ufunc_T *fp, int argcount, typval_T *argvars, typval_T *rettv, funcexe_T *funcexe, dict_T *selfdict);
void save_funccal(funccal_entry_T *entry);