changeset 33358:ce5257a49f56 v9.0.1941

patch 9.0.1941: Memory leak detected Commit: https://github.com/vim/vim/commit/3aa114463f0219eba2e9fe0517067be9fcaf8248 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Sep 25 12:13:17 2023 +0200 patch 9.0.1941: Memory leak detected Problem: Memory leak detected (after 9.0.1928) Solution: Free arg_objm in get_lambda_tv() closes: #13181 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author Christian Brabandt <cb@256bit.org>
date Mon, 25 Sep 2023 12:30:05 +0200
parents 037a18d37e30
children 1f9388b95c75
files src/userfunc.c src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -1721,7 +1721,10 @@ theend:
     eval_lavars_used = old_eval_lavars;
     vim_free(tofree2);
     if (types_optional)
+    {
 	ga_clear_strings(&argtypes);
+	ga_clear(&arg_objm);
+    }
 
     return OK;
 
@@ -1732,6 +1735,7 @@ errret:
     if (types_optional)
     {
 	ga_clear_strings(&argtypes);
+	ga_clear(&arg_objm);
 	if (fp != NULL)
 	    vim_free(fp->uf_arg_types);
     }
--- a/src/version.c
+++ b/src/version.c
@@ -700,6 +700,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1941,
+/**/
     1940,
 /**/
     1939,