Problem: Memory leak in call_func() on alloc failure
Solution: goto theend for the cleanup (Yasuhiro Matsumoto).
The early return bypassed the theend cleanup, leaking the parsed generic
function type arguments. Use goto theend.
related: #20668
related: #20745
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
// could be changed or deleted in the called function.
name = len > 0 ? vim_strnsave(funcname, len) : vim_strsave(funcname);
if (name == NULL)
- return ret;
+ goto theend;
fname = fname_trans_sid(name, fname_buf, &tofree, &error);
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 800,
/**/
799,
/**/