patch 8.2.1265: crash with EXITFREE when split() fails
Problem: Crash with EXITFREE when split() fails.
Solution: Restore 'cpoptions'.
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 5de49c5..c07b1ab 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -7859,9 +7859,9 @@
pat = (char_u *)"[\\x01- ]\\+";
if (rettv_list_alloc(rettv) == FAIL)
- return;
+ goto theend;
if (typeerr)
- return;
+ goto theend;
regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
if (regmatch.regprog != NULL)
@@ -7898,6 +7898,7 @@
vim_regfree(regmatch.regprog);
}
+theend:
p_cpo = save_cpo;
}