1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00

mplayer: minor memory leak in error handling code

This commit is contained in:
wm4 2013-07-12 21:57:27 +02:00
parent 52c3eb6976
commit 311d2f199a

View File

@ -3913,6 +3913,7 @@ static struct track *open_external_file(struct MPContext *mpctx, char *filename,
}
if (!first) {
free_demuxer(demuxer);
free_stream(stream);
mp_msg(MSGT_CPLAYER, MSGL_WARN, "No streams added from file %s.\n",
disp_filename);
goto err_out;