0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

screenshot: fix minor memory leak

Introduced in commit 5fe14d5bf "screenshot: improve error messages".
This commit is contained in:
wm4 2012-04-30 17:36:43 +02:00
parent dd77d9e912
commit 4488583dda

View File

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