Problem: memory leak in eval8()
Solution: Free type_list() even when evaluate is FALSE
(Huihui Huang)
closes: #19819
Signed-off-by: Huihui Huang <625173@qq.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
res = eval9(arg, rettv, evalarg, want_string);
- if (want_type != NULL && evaluate)
+ if (want_type != NULL)
{
- if (res == OK)
+ if (evaluate && res == OK)
{
type_T *actual = typval2type(rettv, get_copyID(), &type_list,
TVTT_DO_MEMBER);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 244,
/**/
243,
/**/