mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.3931: Coverity reports a memory leak
Problem: Coverity reports a memory leak. Solution: Free memory in case of failure.
This commit is contained in:
@@ -3310,7 +3310,10 @@ xdiff_out(
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (ga_grow(&dout->dout_ga, 1) == FAIL)
|
if (ga_grow(&dout->dout_ga, 1) == FAIL)
|
||||||
|
{
|
||||||
|
vim_free(p);
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
p->lnum_orig = start_a + 1;
|
p->lnum_orig = start_a + 1;
|
||||||
p->count_orig = count_a;
|
p->count_orig = count_a;
|
||||||
|
@@ -749,6 +749,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 */
|
||||||
|
/**/
|
||||||
|
3931,
|
||||||
/**/
|
/**/
|
||||||
3930,
|
3930,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user