patch 8.1.0074: crash when running quickfix tests
Problem: Crash when running quickfix tests.
Solution: Do not alloc a new location list when checking for the reference
to be still valid.
diff --git a/src/quickfix.c b/src/quickfix.c
index fb1cb4e..d541aba 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -6350,7 +6350,7 @@
curbuf->b_fname, TRUE, curbuf);
if (res > 0 && (eap->cmdidx == CMD_cexpr
|| eap->cmdidx == CMD_lexpr)
- && qi == ll_get_or_alloc_list(curwin))
+ && qi == GET_LOC_LIST(curwin))
// Jump to the first error if autocmds didn't free the list.
qf_jump(qi, 0, 0, eap->forceit);
}
diff --git a/src/version.c b/src/version.c
index 36c57e2..09325fb 100644
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 74,
+/**/
73,
/**/
72,