From: Bram Moolenaar Date: Mon, 13 Apr 2020 16:13:33 +0000 (+0200) Subject: patch 8.2.0572: using two lines for free and reset X-Git-Tag: v8.2.0572 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df1956075d9ff7b5869fb548734bc2a7be2bce44;p=vim 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 5fc20405a..db03b5b1f 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -4356,10 +4356,7 @@ build_argv_from_list(list_T *l, char ***argv, int *argc) 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 40e048d68..c5b7c8b99 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 572, /**/ 571, /**/