summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c
index 7f019ed70..d3c651829 100644
--- a/src/search.c
+++ b/src/search.c
@@ -5059,8 +5059,7 @@ find_pattern_in_path(
prev_fname = NULL;
}
}
- vim_free(new_fname);
- new_fname = NULL;
+ VIM_CLEAR(new_fname);
already_searched = TRUE;
break;
}