diff --git a/src/cmdexpand.c b/src/cmdexpand.c index 61cfe5bc3b..4916465e8a 100644 --- a/src/cmdexpand.c +++ b/src/cmdexpand.c @@ -3515,8 +3515,10 @@ ExpandFromContext( { regmatch.regprog = vim_regcomp(pat, magic_isset() ? RE_MAGIC : 0); if (regmatch.regprog == NULL) + { + vim_free(tofree); return FAIL; - + } // set ignore-case according to p_ic, p_scs and pat regmatch.rm_ic = ignorecase(pat); } diff --git a/src/version.c b/src/version.c index 473a64fb53..40e00fc2bf 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 55, /**/ 54, /**/