Patch 8.2.0572

7 views
Skip to first unread message

Bram Moolenaar

unread,
Apr 13, 2020, 12:14:13 PM4/13/20
to vim...@googlegroups.com

Patch 8.2.0572 (after 8.2.0571)
Problem: Using two lines for free and reset.
Solution: Use VIM_CLEAR() instead. (Yegappan Lakshmanan)
Files: src/misc2.c


*** ../vim-8.2.0571/src/misc2.c 2020-04-13 17:44:43.616606625 +0200
--- src/misc2.c 2020-04-13 18:10:32.585753722 +0200
***************
*** 4356,4365 ****
int i;

for (i = 0; i < *argc; ++i)
! {
! vim_free((*argv)[i]);
! (*argv)[i] = NULL;
! }
return FAIL;
}
(*argv)[*argc] = (char *)vim_strsave(s);
--- 4356,4362 ----
int i;

for (i = 0; i < *argc; ++i)
! VIM_CLEAR((*argv)[i]);
return FAIL;
}
(*argv)[*argc] = (char *)vim_strsave(s);
*** ../vim-8.2.0571/src/version.c 2020-04-13 17:44:43.620606615 +0200
--- src/version.c 2020-04-13 18:12:21.101275504 +0200
***************
*** 740,741 ****
--- 740,743 ----
{ /* Add new patch number below this line */
+ /**/
+ 572,
/**/

--
Kiss me twice. I'm schizophrenic.

/// 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