Patch 8.2.0544

6 views
Skip to first unread message

Bram Moolenaar

unread,
Apr 11, 2020, 3:32:12 PM4/11/20
to vim...@googlegroups.com

Patch 8.2.0544
Problem: Memory leak in search test.
Solution: Free msgbuf. (Dominique Pelle, closes #5912)
Files: src/search.c


*** ../vim-8.2.0543/src/search.c 2020-04-02 21:13:21.392362410 +0200
--- src/search.c 2020-04-11 21:30:12.297573578 +0200
***************
*** 1416,1421 ****
--- 1416,1422 ----
// Reserve enough space for the search pattern + offset.
len = STRLEN(p) + off_len + 3;

+ vim_free(msgbuf);
msgbuf = alloc(len);
if (msgbuf != NULL)
{
*** ../vim-8.2.0543/src/version.c 2020-04-11 20:50:25.376120463 +0200
--- src/version.c 2020-04-11 21:30:48.913480487 +0200
***************
*** 740,741 ****
--- 740,743 ----
{ /* Add new patch number below this line */
+ /**/
+ 544,
/**/

--
MICHAEL PALIN PLAYED: 1ST SOLDIER WITH A KEEN INTEREST IN BIRDS, DENNIS, MR
DUCK (A VILLAGE CARPENTER WHO IS ALMOST KEENER THAN
ANYONE ELSE TO BURN WITCHES), THREE-HEADED KNIGHT, SIR
GALAHAD, KING OF SWAMP CASTLE, BROTHER MAYNARD'S ROOMATE
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages