diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-20 11:27:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-20 11:27:58 +0000 |
commit | 8aa0e6c60da5f7a4b04eaead40d183fd8e5640a4 (patch) | |
tree | 149847bbf5b2f627ab0fbd70d85541c81b73d84b /src/map.c | |
parent | ca34db3bdef7238b203386dc82b975ffdf26f839 (diff) | |
download | vim-git-8aa0e6c60da5f7a4b04eaead40d183fd8e5640a4.tar.gz |
patch 8.2.4150: Coverity warns for using pointer after freev8.2.4150
Problem: Coverity warns for using pointer after free.
Solution: Swap statements, even though using the pointer is no problem.
Diffstat (limited to 'src/map.c')
-rw-r--r-- | src/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } /* |