On 18/10/14 02:12, Vittorio Giovara wrote:
CC: [email protected]
Bug-Id: CID 718002
---
  libavformat/wtv.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/wtv.c b/libavformat/wtv.c
index c85f374..5af5958 100644
--- a/libavformat/wtv.c
+++ b/libavformat/wtv.c
@@ -632,8 +632,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;
      }


Ok.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to