mirror of
https://github.com/neovim/neovim.git
synced 2025-10-18 15:51:50 +00:00
fix(coverity/532324): free skip_until to prevent leak #36109
This commit is contained in:
@@ -2574,6 +2574,7 @@ static int get_function_body(exarg_T *eap, garray_T *newlines, char *line_arg_in
|
|||||||
heredoc_trimmedlen = (size_t)(skipwhite(theline) - theline);
|
heredoc_trimmedlen = (size_t)(skipwhite(theline) - theline);
|
||||||
heredoc_trimmed = xmemdupz(theline, heredoc_trimmedlen);
|
heredoc_trimmed = xmemdupz(theline, heredoc_trimmedlen);
|
||||||
}
|
}
|
||||||
|
XFREE_CLEAR(skip_until);
|
||||||
skip_until = xmemdupz(p, (size_t)(skiptowhite(p) - p));
|
skip_until = xmemdupz(p, (size_t)(skiptowhite(p) - p));
|
||||||
do_concat = false;
|
do_concat = false;
|
||||||
is_heredoc = true;
|
is_heredoc = true;
|
||||||
|
Reference in New Issue
Block a user