Patch 8.2.0788
Problem:    Memory leak in libvterm.
Solution:   free tmpbuffer.
Files:      src/libvterm/src/vterm.c


*** ../vim-8.2.0787/src/libvterm/src/vterm.c    2020-05-17 22:27:36.728262245 
+0200
--- src/libvterm/src/vterm.c    2020-05-17 23:32:53.612520839 +0200
***************
*** 79,84 ****
--- 79,91 ----
  
    vt->tmpbuffer_len = 64;
    vt->tmpbuffer = vterm_allocator_malloc(vt, vt->tmpbuffer_len);
+   if (vt->tmpbuffer == NULL)
+   {
+     vterm_allocator_free(vt, vt->parser.strbuffer);
+     vterm_allocator_free(vt, vt);
+     vterm_allocator_free(vt, vt->outbuffer);
+     return NULL;
+   }
  
    return vt;
  }
***************
*** 93,98 ****
--- 100,106 ----
  
    vterm_allocator_free(vt, vt->parser.strbuffer);
    vterm_allocator_free(vt, vt->outbuffer);
+   vterm_allocator_free(vt, vt->tmpbuffer);
  
    vterm_allocator_free(vt, vt);
  }
*** ../vim-8.2.0787/src/version.c       2020-05-17 23:00:48.782969093 +0200
--- src/version.c       2020-05-17 23:34:05.712281494 +0200
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     788,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
125. You begin to wonder how often it REALLY is necessary to get up
     and shower or bathe.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202005172135.04HLZBwA001199%40masaka.moolenaar.net.

Raspunde prin e-mail lui