forked from aniani/vim
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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user