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 / 6.0.183 < prev    next >
Encoding:
Internet Message Format  |  2002-02-03  |  1.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.183
  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 6.0.183
  11. Problem:    Leaking memory when ":func!" redefines a function.
  12. Solution:   Free the function name when it's not used.
  13. Files:        src/eval.c
  14.  
  15.  
  16. *** ../vim60.182/src/eval.c    Mon Feb  4 22:30:34 2002
  17. --- src/eval.c    Mon Feb  4 22:02:26 2002
  18. ***************
  19. *** 7731,7736 ****
  20. --- 7731,7737 ----
  21.       /* redefine existing function */
  22.       ga_clear_strings(&(fp->args));
  23.       ga_clear_strings(&(fp->lines));
  24. +     vim_free(name);
  25.       }
  26.       else
  27.       {
  28. *** ../vim60.182/src/version.c    Mon Feb  4 22:43:27 2002
  29. --- src/version.c    Mon Feb  4 22:44:08 2002
  30. ***************
  31. *** 608,609 ****
  32. --- 608,611 ----
  33.   {   /* Add new patch number below this line */
  34. + /**/
  35. +     183,
  36.   /**/
  37.  
  38. -- 
  39. hundred-and-one symptoms of being an internet addict:
  40. 210. When you get a divorce, you don't care about who gets the children,
  41.      but discuss endlessly who can use the email address.
  42.  
  43.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  44. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  45.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  46.