fix(coverity/348240): memory leak in put_view()

This commit is contained in:
Daniil Zhukov 2024-01-26 23:36:48 +04:00
parent a9df0c5ce6
commit 6f49ed58c3

View File

@ -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