mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02: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…
x
Reference in New Issue
Block a user