diff options
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c index 86d43cb1b..ca1370997 100644 --- a/src/screen.c +++ b/src/screen.c @@ -7082,7 +7082,7 @@ end_search_hl() { if (search_hl.rm.regprog != NULL) { - vim_free(search_hl.rm.regprog); + vim_regfree(search_hl.rm.regprog); search_hl.rm.regprog = NULL; } } @@ -7284,7 +7284,7 @@ next_search_hl(win, shl, lnum, mincol) if (shl == &search_hl) { /* don't free regprog in the match list, it's a copy */ - vim_free(shl->rm.regprog); + vim_regfree(shl->rm.regprog); no_hlsearch = TRUE; } shl->rm.regprog = NULL; |