Commit 7360dc22 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

avcodec: fix double free on failure to open subtitles

parent a3bbecd9
...@@ -100,7 +100,6 @@ int InitSubtitleDec(decoder_t *dec, AVCodecContext *context, ...@@ -100,7 +100,6 @@ int InitSubtitleDec(decoder_t *dec, AVCodecContext *context,
if (ret < 0) { if (ret < 0) {
msg_Err(dec, "cannot open codec (%s)", codec->name); msg_Err(dec, "cannot open codec (%s)", codec->name);
free(context->extradata);
free(sys); free(sys);
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment