summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--screenshot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/screenshot.c b/screenshot.c
index 73aefc4361..df92f60d89 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -403,6 +403,7 @@ static char *gen_fname(screenshot_ctx *ctx)
if (sequence == prev_sequence) {
mp_msg(MSGT_CPLAYER, MSGL_ERR, "Can't save screenshot, file '%s' "
"already exists!\n", fname);
+ talloc_free(fname);
return NULL;
}