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;
|
||||
|
||||
if (ga_grow(&dout->dout_ga, 1) == FAIL)
|
||||
{
|
||||
vim_free(p);
|
||||
return -1;
|
||||
}
|
||||
|
||||
p->lnum_orig = start_a + 1;
|
||||
p->count_orig = count_a;
|
||||
|
Reference in New Issue
Block a user