Patch 8.2.3931
Problem:    Coverity reports a memory leak.
Solution:   Free memory in case of failure.
Files:      src/diff.c


*** ../vim-8.2.3930/src/diff.c  2021-12-28 18:29:28.633385576 +0000
--- src/diff.c  2021-12-29 11:53:15.684500439 +0000
***************
*** 3310,3316 ****
--- 3310,3319 ----
        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;
*** ../vim-8.2.3930/src/version.c       2021-12-28 20:59:51.979937080 +0000
--- src/version.c       2021-12-29 11:59:43.239831432 +0000
***************
*** 751,752 ****
--- 751,754 ----
  {   /* Add new patch number below this line */
+ /**/
+     3931,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
134. You consider bandwidth to be more important than carats.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211229120036.237881C0642%40moolenaar.net.

Raspunde prin e-mail lui