patch 8.0.1501: out-of-memory situation not correctly handled

Problem:    Out-of-memory situation not correctly handled. (Coverity)
Solution:   Check for NULL value.
diff --git a/src/ops.c b/src/ops.c
index 830de0b..232dc30 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -1668,6 +1668,8 @@
     v_event = get_vim_var_dict(VV_EVENT);
 
     list = list_alloc();
+    if (list == NULL)
+	return;
     for (n = 0; n < reg->y_size; n++)
 	list_append_string(list, reg->y_array[n], -1);
     list->lv_lock = VAR_FIXED;
diff --git a/src/version.c b/src/version.c
index 4cbfc47..d96f896 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1501,
+/**/
     1500,
 /**/
     1499,