Mercurial > vim
comparison src/ex_docmd.c @ 19685:d64f403289db v8.2.0399
patch 8.2.0399: various memory leaks
Commit: https://github.com/vim/vim/commit/292b90d4fa11022661f449dd3efb73d5ac737313
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 18 15:23:16 2020 +0100
patch 8.2.0399: various memory leaks
Problem: Various memory leaks.
Solution: Avoid the leaks. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/5803)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 18 Mar 2020 15:30:04 +0100 |
parents | 0d677257e35d |
children | 5feb426d2ea1 |
comparison
equal
deleted
inserted
replaced
19684:0b7b0650000a | 19685:d64f403289db |
---|---|
1344 */ | 1344 */ |
1345 if (flags & DOCMD_EXCRESET) | 1345 if (flags & DOCMD_EXCRESET) |
1346 restore_dbg_stuff(&debug_saved); | 1346 restore_dbg_stuff(&debug_saved); |
1347 | 1347 |
1348 msg_list = saved_msg_list; | 1348 msg_list = saved_msg_list; |
1349 | |
1350 // Cleanup if "cs_emsg_silent_list" remains. | |
1351 if (cstack.cs_emsg_silent_list != NULL) | |
1352 { | |
1353 eslist_T *elem, *temp; | |
1354 | |
1355 for (elem = cstack.cs_emsg_silent_list; elem != NULL; elem = temp) | |
1356 { | |
1357 temp = elem->next; | |
1358 vim_free(elem); | |
1359 } | |
1360 } | |
1349 #endif // FEAT_EVAL | 1361 #endif // FEAT_EVAL |
1350 | 1362 |
1351 /* | 1363 /* |
1352 * If there was too much output to fit on the command line, ask the user to | 1364 * If there was too much output to fit on the command line, ask the user to |
1353 * hit return before redrawing the screen. With the ":global" command we do | 1365 * hit return before redrawing the screen. With the ":global" command we do |