patch 9.2.0097: Memory leak in qf_push_dir()

Commit: 
https://github.com/vim/vim/commit/e352bb632ab17e5d7b83d43b78a1005507322402
Author: Christian Brabandt <[email protected]>
Date:   Tue Mar 3 18:25:24 2026 +0000

    patch 9.2.0097: Memory leak in qf_push_dir()
    
    Problem:  Memory leak in qf_push_dir() (after v9.2.0091)
    Problem:  free dirname, if it is not a directory.
    
    closes: #19552
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/quickfix.c b/src/quickfix.c
index 40b417489..b6fa2b65d 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2841,7 +2841,7 @@ qf_push_dir(char_u *dirbuf, struct dir_stack_T 
**stackptr, int is_file_stack)
                (*stackptr)->dirname = dirname;
                break;
            }
-
+           vim_free(dirname);
            ds_new = ds_new->next;
        }
 
diff --git a/src/version.c b/src/version.c
index 31e444098..1a9671db7 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 */
+/**/
+    97,
 /**/
     96,
 /**/

-- 
-- 
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/E1vxUVR-0058ge-PT%40256bit.org.

Raspunde prin e-mail lui