diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2006-03-18 10:05:21 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2006-03-18 10:05:21 +0000 |
commit | 6a402de3bfe116dea7516a230dbc7fc6b06dc43e (patch) | |
tree | 50b352829c38e845ecb8c7708a4dc257f33bf935 /src/libxinevdec | |
parent | f1c76724c29529657d70fc80295abf1cd82884a6 (diff) | |
download | xine-lib-6a402de3bfe116dea7516a230dbc7fc6b06dc43e.tar.gz xine-lib-6a402de3bfe116dea7516a230dbc7fc6b06dc43e.tar.bz2 |
[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
Diffstat (limited to 'src/libxinevdec')
-rw-r--r-- | src/libxinevdec/rgb.c | 5 |
1 files changed, 1 insertions, 4 deletions
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 <stdio.h> @@ -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; |