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:
parent
52c3eb6976
commit
311d2f199a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user