diff src/ex_cmds.c @ 1720:7b258a166daa v7.2.018

updated for version 7.2-018
author vimboss
date Sun, 14 Sep 2008 19:41:30 +0000
parents 0c4a465bd741
children 5a7384b9ca66
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -5059,6 +5059,7 @@ skip:
 
 	    if (did_sub)
 		++sub_nlines;
+	    vim_free(new_start);	/* for when substitute was cancelled */
 	    vim_free(sub_firstline);	/* free the copy of the original line */
 	    sub_firstline = NULL;
 	}