diff --git a/src/search.c b/src/search.c index e0b0f9b45..a6b60f63c 100644 --- a/src/search.c +++ b/src/search.c @@ -4147,6 +4147,7 @@ f_searchcount(typval_T *argvars, typval_T *rettv) { if (*pattern == NUL) goto the_end; + vim_free(spats[last_idx].pat); spats[last_idx].pat = vim_strsave(pattern); } if (spats[last_idx].pat == NULL || *spats[last_idx].pat == NUL) diff --git a/src/version.c b/src/version.c index 80be6d03b..3a7450962 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 880, /**/ 879, /**/