patch 9.1.1749: leaking memory in cs_find_common()

Commit: 
https://github.com/vim/vim/commit/f6659f6e610efe879225f894c19deaa5c91f6b37
Author: Christian Brabandt <[email protected]>
Date:   Wed Sep 10 03:59:38 2025 -0400

    patch 9.1.1749: leaking memory in cs_find_common()
    
    Problem:  leaking memory in cs_find_common()
              (after v9.1.1746)
    Solution: Also free nummatches before returning
    
    closes: #18258
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/if_cscope.c b/src/if_cscope.c
index e571dd754..8188885d4 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -1233,7 +1233,10 @@ cs_find_common(
        win_T       *wp = NULL;
 
        if (tmp == NULL)
+       {
+           vim_free(nummatches);
            return FALSE;
+       }
 
        f = mch_fopen((char *)tmp, "w");
        if (f == NULL)
diff --git a/src/version.c b/src/version.c
index 85ccf3fa8..10958a509 100644
--- a/src/version.c
+++ b/src/version.c
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1749,
 /**/
     1748,
 /**/

-- 
-- 
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/E1uwFyq-00FBzR-29%40256bit.org.

Raspunde prin e-mail lui