home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.0 / 7.0.063 < prev    next >
Encoding:
Internet Message Format  |  2006-08-15  |  1.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.0.063
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.0.063
  11. Problem:    Tiny chance for a memory leak. (coverity)
  12. Solution:   Free pointer when next memory allocation fails.
  13. Files:        src/eval.c
  14.  
  15.  
  16. *** ../vim-7.0.062/src/eval.c    Wed Aug 16 19:34:59 2006
  17. --- src/eval.c    Wed Aug 16 21:33:24 2006
  18. ***************
  19. *** 18811,18816 ****
  20. --- 18811,18817 ----
  21.           if (dict_add(fudi.fd_dict, fudi.fd_di) == FAIL)
  22.           {
  23.               vim_free(fudi.fd_di);
  24. +             vim_free(fp);
  25.               goto erret;
  26.           }
  27.           }
  28. *** ../vim-7.0.062/src/version.c    Wed Aug 16 21:42:34 2006
  29. --- src/version.c    Wed Aug 16 22:02:57 2006
  30. ***************
  31. *** 668,669 ****
  32. --- 668,671 ----
  33.   {   /* Add new patch number below this line */
  34. + /**/
  35. +     63,
  36.   /**/
  37.  
  38. -- 
  39. hundred-and-one symptoms of being an internet addict:
  40. 167. You have more than 200 websites bookmarked.
  41.  
  42.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  43. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  44. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  45.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  46.