To: vim_dev@googlegroups.com Subject: Patch 7.4.2045 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///