summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-08 18:19:48 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-08 18:19:48 +0200
commit473de61b0409f8f8c86585733f099f882122b280 (patch)
tree0c2b031a29a283c70d63368c38031517572d954c /src/fileio.c
parentcd9c46265e4a12cf716187bc8188c7399797f806 (diff)
downloadvim-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/fileio.c')
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index b93ae1b41..f1db98364 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -7921,7 +7921,7 @@ au_cleanup()
if (ap->pat == NULL)
{
*prev_ap = ap->next;
- vim_free(ap->reg_prog);
+ vim_regfree(ap->reg_prog);
vim_free(ap);
}
else
@@ -10070,7 +10070,7 @@ match_file_pat(pattern, prog, fname, sfname, tail, allow_dirs)
result = TRUE;
if (prog == NULL)
- vim_free(regmatch.regprog);
+ vim_regfree(regmatch.regprog);
return result;
}
#endif