[FFmpeg-devel] Found Two Mem Leaks. Fix Ok.
Oliver Pfister
oliver.pfister
Wed Jul 4 17:05:16 CEST 2007
Hi,
I found two mem. leaks, I tested the fix, it works:
1. In ffv1.c
------------
static int common_end(AVCodecContext *avctx){
FFV1Context *s = avctx->priv_data;
int i;
for(i=0; i<s->plane_count; i++){
PlaneContext *p= &s->plane[i];
av_freep(&p->state);
av_freep(&p->vlc_state); // Add this line!!!!!!!
}
return 0;
}
2. In huffyuv.c
---------------
static int decode_end(AVCodecContext *avctx){
HYuvContext *s = avctx->priv_data;
int i;
common_end(s);
av_freep(&s->bitstream_buffer);
for(i=0; i<6; i++){ // Change from 3 to 6 !!!!!!!!!!
free_vlc(&s->vlc[i]);
}
return 0;
}
Cheers,
Oli
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.9.14/885 - Release Date: 03/07/2007
10:02
More information about the ffmpeg-devel
mailing list