summaryrefslogtreecommitdiff
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-13 00:27:25 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-13 00:27:25 +0100
commitdb8a53d86a71c948bd41dd12d1ff1d3351ec2746 (patch)
tree7a4b80b38f86ec41528c816e3fd1e6bc07f0cbd2 /libavformat/sdp.c
parent180a0b1bcb522dab0ad828d8efb9673a6531d534 (diff)
downloadffmpeg-db8a53d86a71c948bd41dd12d1ff1d3351ec2746.tar.gz
avformat/sdp: fix memleak on error
Fixes CID700640 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 0124218495..f844e4df5a 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;
}