Skip to content

Commit 8aa0e6c

Browse files
committed
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.
1 parent ca34db3 commit 8aa0e6c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/map.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ map_free(mapblock_T **mpp)
8484
vim_free(mp->m_str);
8585
vim_free(mp->m_orig_str);
8686
*mpp = mp->m_next;
87-
vim_free(mp);
8887
#ifdef FEAT_EVAL
8988
reset_last_used_map(mp);
9089
#endif
90+
vim_free(mp);
9191
}
9292

9393
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
4150,
753755
/**/
754756
4149,
755757
/**/

0 commit comments

Comments
 (0)