From: Huihui Huang <625173@qq.com> Date: Wed, 25 Mar 2026 19:26:38 +0000 (+0000) Subject: patch 9.2.0244: memory leak in eval8() X-Git-Tag: v9.2.0244^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2cf84d0a0fb5d880e36a599ea9f2a3b95ed67a1;p=thirdparty%2Fvim.git patch 9.2.0244: memory leak in eval8() 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 --- diff --git a/src/eval.c b/src/eval.c index ba18a41597..e8b9cc8303 100644 --- a/src/eval.c +++ b/src/eval.c @@ -4856,9 +4856,9 @@ eval8( 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); diff --git a/src/version.c b/src/version.c index 75ff30ec92..d6021159d1 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 244, /**/ 243, /**/