aboutsummaryrefslogtreecommitdiffstats
path: root/fm.c
diff options
context:
space:
mode:
Diffstat (limited to 'fm.c')
-rw-r--r--fm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fm.c b/fm.c
index fba24f8..00cfef9 100644
--- a/fm.c
+++ b/fm.c
@@ -194,6 +194,8 @@ static char *fm_print_preview_content(window *w, const char *path)
mvwprintw(w->win, i, 0, buf);
i++;
}
+
+ free(buf);
return buf;
}
static void *fm_preview_file(fm_info *i)