diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-08 18:19:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-08 18:19:48 +0200 |
commit | 473de61b0409f8f8c86585733f099f882122b280 (patch) | |
tree | 0c2b031a29a283c70d63368c38031517572d954c /src/quickfix.c | |
parent | cd9c46265e4a12cf716187bc8188c7399797f806 (diff) | |
download | vim-git-473de61b0409f8f8c86585733f099f882122b280.tar.gz |
updated for version 7.3.1149v7.3.1149
Problem: New regexp engine: Matching plain text could be faster.
Solution: Detect a plain text match and handle it specifically. Add
vim_regfree().
Diffstat (limited to 'src/quickfix.c')
-rw-r--r-- | src/quickfix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index a8fc01013..3ac534dc1 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -863,7 +863,7 @@ qf_init_ok: for (fmt_ptr = fmt_first; fmt_ptr != NULL; fmt_ptr = fmt_first) { fmt_first = fmt_ptr->next; - vim_free(fmt_ptr->prog); + vim_regfree(fmt_ptr->prog); vim_free(fmt_ptr); } qf_clean_dir_stack(&dir_stack); @@ -3487,7 +3487,7 @@ theend: vim_free(dirname_now); vim_free(dirname_start); vim_free(target_dir); - vim_free(regmatch.regprog); + vim_regfree(regmatch.regprog); } /* @@ -4178,7 +4178,7 @@ ex_helpgrep(eap) } } - vim_free(regmatch.regprog); + vim_regfree(regmatch.regprog); #ifdef FEAT_MBYTE if (vc.vc_type != CONV_NONE) convert_setup(&vc, NULL, NULL); |