From 6a402de3bfe116dea7516a230dbc7fc6b06dc43e Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sat, 18 Mar 2006 10:05:21 +0000 Subject: [coverity] CID: 277 Checker: USE_AFTER_FREE (help) File: xine-lib/src/libxinevdec/rgb.c Function: rgb_decode_data Description: Double free of pointer "(this)->buf" in call to "free" CVS patchset: 7941 CVS date: 2006/03/18 10:05:21 --- src/libxinevdec/rgb.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/libxinevdec/rgb.c b/src/libxinevdec/rgb.c index 6abb243cb..9c6468726 100644 --- a/src/libxinevdec/rgb.c +++ b/src/libxinevdec/rgb.c @@ -30,7 +30,7 @@ * One more catch: Raw RGB from a Microsoft file is upside down. This is * indicated by a negative height parameter. * - * $Id: rgb.c,v 1.30 2005/04/24 13:37:34 tmattern Exp $ + * $Id: rgb.c,v 1.31 2006/03/18 10:05:21 tmattern Exp $ */ #include @@ -123,9 +123,6 @@ static void rgb_decode_data (video_decoder_t *this_gen, if (buf->decoder_flags & BUF_FLAG_STDHEADER) { /* need to initialize */ this->stream->video_out->open (this->stream->video_out, this->stream); - if(this->buf) - free(this->buf); - bih = (xine_bmiheader *) buf->content; this->width = (bih->biWidth + 3) & ~0x03; this->height = (bih->biHeight + 3) & ~0x03; -- cgit v1.2.3