avformat/sdp: fix memleak on error

Fixes CID700640
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-12-13 00:27:25 +01:00
parent 180a0b1bcb
commit db8a53d86a
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}