mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.1621: crash when using submatch(0, 1) in substitute()
Problem: Crash when using submatch(0, 1) in substitute(). Solution: Increment reference count. (closes #6887)
This commit is contained in:
@@ -2543,6 +2543,7 @@ reg_submatch_list(int no)
|
||||
list_free(list);
|
||||
return NULL;
|
||||
}
|
||||
++list->lv_refcount;
|
||||
return list;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user