mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-04 22:30:25 +00:00
avformat/sdp: fix memleak on error
Fixes CID700640 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
180a0b1bcb
commit
db8a53d86a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user