]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/wtvdec.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavformat / wtvdec.c
index 319b986ab4e258bedb514ce9b9242c7cf7f204a3..a8dc506e846a2ea1994dcaeb59495dfe643d0fa3 100644 (file)
@@ -580,8 +580,10 @@ static AVStream * new_stream(AVFormatContext *s, AVStream *st, int sid, int code
         if (!wst)
             return NULL;
         st = avformat_new_stream(s, NULL);
-        if (!st)
+        if (!st) {
+            av_free(wst);
             return NULL;
+        }
         st->id = sid;
         st->priv_data = wst;
     }