components/vim/vim72-patches/7.2.018
changeset 198 172fc01ce997
equal deleted inserted replaced
197:fd801ec0737c 198:172fc01ce997
       
     1 To: [email protected]
       
     2 Subject: Patch 7.2.018
       
     3 Fcc: outbox
       
     4 From: Bram Moolenaar <[email protected]>
       
     5 Mime-Version: 1.0
       
     6 Content-Type: text/plain; charset=ISO-8859-1
       
     7 Content-Transfer-Encoding: 8bit
       
     8 ------------
       
     9 
       
    10 Patch 7.2.018
       
    11 Problem:    Memory leak when substitute is aborted.
       
    12 Solution:   Free the buffer allocated for the new text. (Dominique Pelle)
       
    13 Files:	    src/ex_cmds.c
       
    14 
       
    15 
       
    16 *** ../vim-7.2.017/src/ex_cmds.c	Wed Aug  6 15:03:07 2008
       
    17 --- src/ex_cmds.c	Sun Sep 14 13:45:03 2008
       
    18 ***************
       
    19 *** 5059,5064 ****
       
    20 --- 5059,5065 ----
       
    21   
       
    22   	    if (did_sub)
       
    23   		++sub_nlines;
       
    24 + 	    vim_free(new_start);	/* for when substitute was cancelled */
       
    25   	    vim_free(sub_firstline);	/* free the copy of the original line */
       
    26   	    sub_firstline = NULL;
       
    27   	}
       
    28 *** ../vim-7.2.017/src/version.c	Sun Sep 14 15:57:54 2008
       
    29 --- src/version.c	Sun Sep 14 21:38:25 2008
       
    30 ***************
       
    31 *** 678,679 ****
       
    32 --- 678,681 ----
       
    33   {   /* Add new patch number below this line */
       
    34 + /**/
       
    35 +     18,
       
    36   /**/
       
    37 
       
    38 -- 
       
    39 hundred-and-one symptoms of being an internet addict:
       
    40 55. You ask your doctor to implant a gig in your brain.
       
    41 
       
    42  /// Bram Moolenaar -- [email protected] -- 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    ///