patch 9.2.0066: memory leak in build_drop_cmd()
Commit:
https://github.com/vim/vim/commit/c0740e046e936ccff4fb622b6a108e0e2306b04f
Author: Huihui Huang <[email protected]>
Date: Thu Feb 26 21:08:50 2026 +0000
patch 9.2.0066: memory leak in build_drop_cmd()
Problem: memory leak in build_drop_cmd()
Solution: Free cdp.string on early return
(Huihui Huang).
closes: #19517
Signed-off-by: Huihui Huang <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/clientserver.c b/src/clientserver.c
index 3d801bbf0..ae5130dd3 100644
--- a/src/clientserver.c
+++ b/src/clientserver.c
@@ -740,6 +740,7 @@ build_drop_cmd(
);
if (p == NULL)
{
+ vim_free(cdp.string);
vim_free(ga.ga_data);
return NULL;
}
diff --git a/src/version.c b/src/version.c
index 046a7e473..6402b27b4 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 */
+/**/
+ 66,
/**/
65,
/**/
--
--
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/E1vvihM-00EbsI-Nh%40256bit.org.