forked from aniani/vim
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:
@@ -84,10 +84,10 @@ map_free(mapblock_T **mpp)
|
|||||||
vim_free(mp->m_str);
|
vim_free(mp->m_str);
|
||||||
vim_free(mp->m_orig_str);
|
vim_free(mp->m_orig_str);
|
||||||
*mpp = mp->m_next;
|
*mpp = mp->m_next;
|
||||||
vim_free(mp);
|
|
||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
reset_last_used_map(mp);
|
reset_last_used_map(mp);
|
||||||
#endif
|
#endif
|
||||||
|
vim_free(mp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4150,
|
||||||
/**/
|
/**/
|
||||||
4149,
|
4149,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user