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:
parent
ca34db3bde
commit
8aa0e6c60d
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4150,
|
||||
/**/
|
||||
4149,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user