From: Michael Niedermayer <[email protected]>

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

diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 186f83b..23bb172 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;
             }
 
-- 
1.7.9.4

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

Reply via email to