Commit db8a53d8 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/sdp: fix memleak on error

Fixes CID700640
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 180a0b1b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment