0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.3.742

Problem:    Leaking memory when :vimgrep restores the directory.
Solution:   Free the allocated memory. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar 2012-11-28 22:12:44 +01:00
parent 2e18a12780
commit f135435f80
2 changed files with 3 additions and 0 deletions

View File

@ -3515,6 +3515,7 @@ restore_start_dir(dirname_start)
ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd; ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd;
ex_cd(&ea); ex_cd(&ea);
} }
vim_free(dirname_now);
} }
} }

View File

@ -725,6 +725,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
742,
/**/ /**/
741, 741,
/**/ /**/