aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-27 14:44:18 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-27 18:43:53 -0400
commite09e9ca8103f55d3913816388c5754cc2afe3109 (patch)
treee9446833c821a248c954517cd8512639c935d7ff /src
parent882782f0fb019ee52c1be901b093644aa4134ab7 (diff)
downloadrneovim-e09e9ca8103f55d3913816388c5754cc2afe3109.tar.gz
rneovim-e09e9ca8103f55d3913816388c5754cc2afe3109.tar.bz2
rneovim-e09e9ca8103f55d3913816388c5754cc2afe3109.zip
lint
Diffstat (limited to 'src')
-rw-r--r--src/nvim/file_search.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c
index 6c1a2f6d7b..ee775bab4a 100644
--- a/src/nvim/file_search.c
+++ b/src/nvim/file_search.c
@@ -1221,18 +1221,19 @@ static ff_stack_T *ff_pop(ff_search_ctx_T *search_ctx)
/*
* free the given stack element
*/
-static void ff_free_stack_element(ff_stack_T *stack_ptr)
+static void ff_free_stack_element(ff_stack_T *const stack_ptr)
{
if (stack_ptr == NULL) {
return;
}
- /* free handles possible NULL pointers */
+ // free handles possible NULL pointers
xfree(stack_ptr->ffs_fix_path);
xfree(stack_ptr->ffs_wc_path);
- if (stack_ptr->ffs_filearray != NULL)
+ if (stack_ptr->ffs_filearray != NULL) {
FreeWild(stack_ptr->ffs_filearray_size, stack_ptr->ffs_filearray);
+ }
xfree(stack_ptr);
}