Browse Source

avformat/sdp: fix memleak on error

Fixes CID700640
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
db8a53d86a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/sdp.c

+ 1
- 0
libavformat/sdp.c 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;
}



Loading…
Cancel
Save