From a988bc1eb3c0dbc0ce3ccd0f3422a459a9e61295 Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 25 Jul 2026 17:12:52 +0800 Subject: Fix use-after-free of pointer "buf" --- fm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fm.c') diff --git a/fm.c b/fm.c index c5c5b30..f6a7bfd 100644 --- a/fm.c +++ b/fm.c @@ -198,9 +198,8 @@ static char *fm_print_preview_content(window *w, const char *path) } free(buf); - return buf; } -static void *fm_preview_file(fm_info *i) +static void fm_preview_file(fm_info *i) { wclear(i->fm_r->win); char *path = xmalloc(sizeof(char) * PATH_MAX); -- cgit v1.2.3