# HG changeset patch # User Bram Moolenaar # Date 1354137164 -3600 # Node ID 4d1753f3e85c7fb6d9cde1a8aa9ded8d11cdcd01 # Parent 152afde402a6763a7d4ff8f8e93a4b7bc50b099d updated for version 7.3.742 Problem: Leaking memory when :vimgrep restores the directory. Solution: Free the allocated memory. (Christian Brabandt) diff --git a/src/quickfix.c b/src/quickfix.c --- a/src/quickfix.c +++ b/src/quickfix.c @@ -3515,6 +3515,7 @@ restore_start_dir(dirname_start) ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd; ex_cd(&ea); } + vim_free(dirname_now); } } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -726,6 +726,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 742, +/**/ 741, /**/ 740,