diff options
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r-- | src/nvim/search.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index 6e00602e66..605d9383a7 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -4290,8 +4290,7 @@ find_pattern_in_path( prev_fname = NULL; } } - xfree(new_fname); - new_fname = NULL; + XFREE_CLEAR(new_fname); already_searched = TRUE; break; } |