[FFmpeg-cvslog] ffserver: free AVStream st before wiping context

Reynaldo H. Verdejo Pinochet git at videolan.org
Sat Apr 26 00:55:25 CEST 2014


ffmpeg | branch: master | Reynaldo H. Verdejo Pinochet <r.verdejo at sisa.samsung.com> | Fri Apr 25 18:47:55 2014 -0300| [1404e2a389fcaa7ebc7852ee74c96641c394fa14] | committer: Reynaldo H. Verdejo Pinochet

ffserver: free AVStream st before wiping context

Should fix FFmpeg Coverity Scan issue #732269

Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo at sisa.samsung.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1404e2a389fcaa7ebc7852ee74c96641c394fa14
---

 ffserver.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffserver.c b/ffserver.c
index ea0ccd8..cc736cb 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3468,6 +3468,7 @@ static int rtp_new_av_stream(HTTPContext *c,
     fail:
         if (h)
             ffurl_close(h);
+        av_free(st);
         av_free(ctx);
         return -1;
     }



More information about the ffmpeg-cvslog mailing list