patch 8.2.0572: using two lines for free and reset
Problem: Using two lines for free and reset.
Solution: Use VIM_CLEAR() instead. (Yegappan Lakshmanan)
diff --git a/src/misc2.c b/src/misc2.c
index 5fc2040..db03b5b 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -4356,10 +4356,7 @@
int i;
for (i = 0; i < *argc; ++i)
- {
- vim_free((*argv)[i]);
- (*argv)[i] = NULL;
- }
+ VIM_CLEAR((*argv)[i]);
return FAIL;
}
(*argv)[*argc] = (char *)vim_strsave(s);
diff --git a/src/version.c b/src/version.c
index 40e048d..c5b7c8b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 572,
+/**/
571,
/**/
570,