Merge #19060 memory leaks

This commit is contained in:
Justin M. Keyes
2022-06-28 12:37:39 +02:00
committed by GitHub
4 changed files with 21 additions and 3 deletions

View File

@@ -780,6 +780,9 @@ static void f_call(typval_T *argvars, typval_T *rettv, FunPtr fptr)
if (argvars[2].v_type != VAR_UNKNOWN) {
if (argvars[2].v_type != VAR_DICT) {
emsg(_(e_dictreq));
if (owned) {
func_unref(func);
}
return;
}
selfdict = argvars[2].vval.v_dict;