patch 9.2.0059: memory leak in fill_assert_error

Commit: 
https://github.com/vim/vim/commit/e8432bc5d5ab04b998908cc839a2e48db2e788e4
Author: Huihui Huang <[email protected]>
Date:   Wed Feb 25 20:36:36 2026 +0000

    patch 9.2.0059: memory leak in fill_assert_error
    
    Problem:  memory leak in fill_assert_error
    Solution: Free the variables (Huihui Huang).
    
    fixes:  #19502
    closes: #19507
    
    Co-authored-by: Hirohito Higashi <[email protected]>
    Signed-off-by: Huihui Huang <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/testing.c b/src/testing.c
index 75e5edfc7..eaa7c69f8 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -188,7 +188,13 @@ fill_assert_error(
            exp_tv->vval.v_dict = dict_alloc();
            got_tv->vval.v_dict = dict_alloc();
            if (exp_tv->vval.v_dict == NULL || got_tv->vval.v_dict == NULL)
+           {
+               dict_unref(exp_tv->vval.v_dict);
+               exp_tv->vval.v_dict = NULL;
+               dict_unref(got_tv->vval.v_dict);
+               got_tv->vval.v_dict = NULL;
                return;
+           }
 
            todo = (int)exp_d->dv_hashtab.ht_used;
            FOR_ALL_HASHTAB_ITEMS(&exp_d->dv_hashtab, hi, todo)
diff --git a/src/version.c b/src/version.c
index 2f389a74e..1db0171fe 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 */
+/**/
+    59,
 /**/
     58,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vvLkm-00CxCO-Fi%40256bit.org.

Raspunde prin e-mail lui