forked from aniani/vim
patch 8.2.2125: Vim9: leaking memory
Problem: Vim9: leaking memory. Solution: Free the saved 'cpo' value.
This commit is contained in:
@@ -1492,7 +1492,7 @@ almosttheend:
|
||||
if (si->sn_save_cpo != NULL)
|
||||
{
|
||||
set_option_value((char_u *)"cpo", 0L, si->sn_save_cpo, 0);
|
||||
si->sn_save_cpo = NULL;
|
||||
CLEAR_POINTER(si->sn_save_cpo);
|
||||
}
|
||||
|
||||
current_sctx = save_current_sctx;
|
||||
|
Reference in New Issue
Block a user