[FFmpeg-cvslog] avformat/sdp: fix memleak on error

Michael Niedermayer git at videolan.org
Fri Dec 13 01:08:58 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 13 00:27:25 2013 +0100| [db8a53d86a71c948bd41dd12d1ff1d3351ec2746] | committer: Michael Niedermayer

avformat/sdp: fix memleak on error

Fixes CID700640
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/sdp.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 0124218..f844e4d 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -532,6 +532,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
                 break;
             default:
                 av_log(c, AV_LOG_ERROR, "Unsupported pixel format.\n");
+                av_free(config);
                 return NULL;
             }
 



More information about the ffmpeg-cvslog mailing list