patch 9.2.0134: memory leak in socket_server_send_reply()

Commit: 
https://github.com/vim/vim/commit/ede5252d897a125ef2d623fffa1fef60f4d91074
Author: Huihui Huang <[email protected]>
Date:   Tue Mar 10 19:40:33 2026 +0000

    patch 9.2.0134: memory leak in socket_server_send_reply()
    
    Problem:  memory leak in socket_server_send_reply() in src/os_unix.c
    Solution: Free final in the error case when returning early
              (Huihui Huang).
    
    closes: #19627
    
    Signed-off-by: Huihui Huang <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/os_unix.c b/src/os_unix.c
index 8aeca951c..3bd2942ca 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -9778,6 +9778,7 @@ socket_server_send_reply(char_u *client, char_u *str)
            socket_server_write(socket_fd, final, sz, 1000) == FAIL)
     {
        socket_server_free_cmd(&cmd);
+       vim_free(final);
        close(socket_fd);
        return FAIL;
     }
diff --git a/src/version.c b/src/version.c
index 7d7c7e4dc..4d12e98c6 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 */
+/**/
+    134,
 /**/
     133,
 /**/

-- 
-- 
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/E1w03FL-00GWzV-Vd%40256bit.org.

Raspunde prin e-mail lui