On Tue, Jul 27, 2010 at 4:30 PM, Nazri Ramliy <[email protected]> wrote:
> Please have a look at the patches - 0001 is the major one
I noticed a leak. The fix is attached, to be applied after 0001.
nazri.
--
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
diff --git a/src/misc1.c b/src/misc1.c
index ed5025a..eaedd8c 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -9532,7 +9532,10 @@ uniquefy_paths(gap, pattern)
vim_free(fnames[i]);
fnames[i] = alloc((int)(STRLEN(rel_path) + 1));
if (fnames[i] == NULL)
+ {
+ vim_free(rel_path);
goto theend;
+ }
}
STRCPY(fnames[i], rel_path);