mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
lint
This commit is contained in:
parent
882782f0fb
commit
e09e9ca810
@ -1221,18 +1221,19 @@ static ff_stack_T *ff_pop(ff_search_ctx_T *search_ctx)
|
|||||||
/*
|
/*
|
||||||
* free the given stack element
|
* 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) {
|
if (stack_ptr == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* free handles possible NULL pointers */
|
// free handles possible NULL pointers
|
||||||
xfree(stack_ptr->ffs_fix_path);
|
xfree(stack_ptr->ffs_fix_path);
|
||||||
xfree(stack_ptr->ffs_wc_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);
|
FreeWild(stack_ptr->ffs_filearray_size, stack_ptr->ffs_filearray);
|
||||||
|
}
|
||||||
|
|
||||||
xfree(stack_ptr);
|
xfree(stack_ptr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user