mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.0.0214: leaking memory when syntax cluster id is unknown
Problem: Leaking memory when syntax cluster id is unknown. (Coverity) Solution: Free the memory.
This commit is contained in:
@@ -5668,6 +5668,8 @@ syn_cmd_cluster(exarg_T *eap, int syncing UNUSED)
|
|||||||
if (scl_id >= 0)
|
if (scl_id >= 0)
|
||||||
syn_combine_list(&SYN_CLSTR(curwin->w_s)[scl_id].scl_list,
|
syn_combine_list(&SYN_CLSTR(curwin->w_s)[scl_id].scl_list,
|
||||||
&clstr_list, list_op);
|
&clstr_list, list_op);
|
||||||
|
else
|
||||||
|
vim_free(clstr_list);
|
||||||
got_clstr = TRUE;
|
got_clstr = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6034,7 +6036,8 @@ get_id_list(
|
|||||||
}
|
}
|
||||||
if (count != 0)
|
if (count != 0)
|
||||||
{
|
{
|
||||||
EMSG2(_("E408: %s must be first in contains list"), name + 1);
|
EMSG2(_("E408: %s must be first in contains list"),
|
||||||
|
name + 1);
|
||||||
failed = TRUE;
|
failed = TRUE;
|
||||||
vim_free(name);
|
vim_free(name);
|
||||||
break;
|
break;
|
||||||
|
@@ -764,6 +764,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 */
|
||||||
|
/**/
|
||||||
|
214,
|
||||||
/**/
|
/**/
|
||||||
213,
|
213,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user