Skip to content

Commit abdb302

Browse files
committed
updated for version 7.3.742
Problem: Leaking memory when :vimgrep restores the directory. Solution: Free the allocated memory. (Christian Brabandt)
1 parent 7b44f81 commit abdb302

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/quickfix.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3515,6 +3515,7 @@ restore_start_dir(dirname_start)
35153515
ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd;
35163516
ex_cd(&ea);
35173517
}
3518+
vim_free(dirname_now);
35183519
}
35193520
}
35203521

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ static char *(features[]) =
725725

726726
static int included_patches[] =
727727
{ /* Add new patch number below this line */
728+
/**/
729+
742,
728730
/**/
729731
741,
730732
/**/

0 commit comments

Comments
 (0)