Patch 7.4.2045
Problem: Memory leak when using a function callback.
Solution: Don't save the function name when it's in the partial.
Files: src/channel.c
*** ../vim-7.4.2044/src/channel.c 2016-07-11 22:41:09.572781958 +0200
--- src/channel.c 2016-07-15 20:53:34.704360637 +0200
***************
*** 1122,1128 ****
{
free_callback(*cbp, *pp);
if (callback != NULL && *callback != NUL)
! *cbp = vim_strsave(callback);
else
*cbp = NULL;
*pp = partial;
--- 1122,1133 ----
{
free_callback(*cbp, *pp);
if (callback != NULL && *callback != NUL)
! {
! if (partial != NULL)
! *cbp = partial->pt_name;
! else
! *cbp = vim_strsave(callback);
! }
else
*cbp = NULL;
*pp = partial;
*** ../vim-7.4.2044/src/version.c 2016-07-15 21:24:41.197452549 +0200
--- src/version.c 2016-07-15 21:29:17.857463703 +0200
***************
*** 760,761 ****
--- 760,763 ----
{ /* Add new patch number below this line */
+ /**/
+ 2045,
/**/
--
"Never be afraid to tell the world who you are."
-- Anonymous
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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].
For more options, visit https://groups.google.com/d/optout.