mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
fix(coverity/348240): memory leak in put_view()
This commit is contained in:
parent
a9df0c5ce6
commit
6f49ed58c3
@ -366,6 +366,7 @@ static int put_view(FILE *fd, win_T *wp, int add_edit, unsigned *flagp, int curr
|
||||
|
||||
if (put_line(fd, "enew | setl bt=help") == FAIL
|
||||
|| fprintf(fd, "help %s", curtag) < 0 || put_eol(fd) == FAIL) {
|
||||
xfree(fname_esc);
|
||||
return FAIL;
|
||||
}
|
||||
} else if (wp->w_buffer->b_ffname != NULL
|
||||
|
Loading…
Reference in New Issue
Block a user