You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/sdp: fix memleak on error
Fixes CID700640 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user