06:45
avformat/rtpdec_asf: fix leak in ff_wms_parse_sdp_a_line() In ff_wms_parse_sdp_a_line(), it allocates memory in buf, but doesn't free buf when avformat_alloc_context() failed. Add av_free(buf) before return to prevent from leak. Signed-off-by: Lidong Yan <502024330056ⓐsmail.nju.edu.cn> Signed-off-by: Michael Niedermayer <michaelⓐniedermayer.cc> [DH] libavformat/rtpdec_asf.c
06:45
avcodec/sunrast: fix leak in sunrast_decode_frame() In sunrast_decode_frame(), we use av_malloc_array() allocates memory to ptr and ptr2. However if buf_end - buf < 1, this function returns error code without freeing this memory thus cause a leak. Add av_freep() before return. Signed-off-by: Lidong Yan <502024330056ⓐsmail.nju.edu.cn> Signed-off-by: Michael Niedermayer <michaelⓐniedermayer.cc> [DH] libavcodec/sunrast.c
06:45
avformat/rtpdec_latm: fix leak in parse_fmtp_config() av_mallocz() allocates memory in config, but we forget to free it if init_get_bits() failed. Replace return ret with goto end. Signed-off-by: Lidong Yan <502024330056ⓐsmail.nju.edu.cn> Signed-off-by: Michael Niedermayer <michaelⓐniedermayer.cc> [DH] libavformat/rtpdec_latm.c