Mercurial > vim
comparison src/quickfix.c @ 3974:4d1753f3e85c v7.3.742
updated for version 7.3.742
Problem: Leaking memory when :vimgrep restores the directory.
Solution: Free the allocated memory. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 28 Nov 2012 22:12:44 +0100 |
parents | eccae034465b |
children | 4934eb2e22dc |
comparison
equal
deleted
inserted
replaced
3973:152afde402a6 | 3974:4d1753f3e85c |
---|---|
3513 | 3513 |
3514 ea.arg = dirname_start; | 3514 ea.arg = dirname_start; |
3515 ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd; | 3515 ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd; |
3516 ex_cd(&ea); | 3516 ex_cd(&ea); |
3517 } | 3517 } |
3518 vim_free(dirname_now); | |
3518 } | 3519 } |
3519 } | 3520 } |
3520 | 3521 |
3521 /* | 3522 /* |
3522 * Load file "fname" into a dummy buffer and return the buffer pointer, | 3523 * Load file "fname" into a dummy buffer and return the buffer pointer, |