0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.4150: Coverity warns for using pointer after free

Problem:    Coverity warns for using pointer after free.
Solution:   Swap statements, even though using the pointer is no problem.
This commit is contained in:
Bram Moolenaar 2022-01-20 11:27:58 +00:00
parent ca34db3bde
commit 8aa0e6c60d
2 changed files with 3 additions and 1 deletions

View File

@ -84,10 +84,10 @@ map_free(mapblock_T **mpp)
vim_free(mp->m_str);
vim_free(mp->m_orig_str);
*mpp = mp->m_next;
vim_free(mp);
#ifdef FEAT_EVAL
reset_last_used_map(mp);
#endif
vim_free(mp);
}
/*

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4150,
/**/
4149,
/**/