forked from aniani/vim
patch 8.2.0435: channel contents might be freed twice
Problem: Channel contents might be freed twice. Solution: Call either channel_free_channel() or channel_free(), not both. (Nobuhiro Takasaki, closes #5835)
This commit is contained in:
@@ -4457,8 +4457,10 @@ channel_parse_messages(void)
|
|||||||
if (channel->ch_killing)
|
if (channel->ch_killing)
|
||||||
{
|
{
|
||||||
channel_free_contents(channel);
|
channel_free_contents(channel);
|
||||||
|
channel_free_channel(channel);
|
||||||
channel->ch_job->jv_channel = NULL;
|
channel->ch_job->jv_channel = NULL;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
channel_free(channel);
|
channel_free(channel);
|
||||||
// channel has been freed, start over
|
// channel has been freed, start over
|
||||||
channel = first_channel;
|
channel = first_channel;
|
||||||
|
@@ -738,6 +738,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 */
|
||||||
|
/**/
|
||||||
|
435,
|
||||||
/**/
|
/**/
|
||||||
434,
|
434,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user