mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
mplayer: minor memory leak in error handling code
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user