From 2c718a26fc0a0374b5a5cb5666b5b214c5eed086 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Mon, 21 Oct 2002 06:43:48 +0000 Subject: [PATCH] fix bug in free()ing of output arrays --- src/libFLAC/stream_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index 019ccab5..ecc9c737 100644 --- a/src/libFLAC/stream_decoder.c +++ b/src/libFLAC/stream_decoder.c @@ -698,7 +698,7 @@ FLAC__bool allocate_output_(FLAC__StreamDecoder *decoder, unsigned size, unsigne for(i = 0; i < FLAC__MAX_CHANNELS; i++) { if(0 != decoder->private_->output[i]) { - free(decoder->private_->output[i]); + free(decoder->private_->output[i]-4); decoder->private_->output[i] = 0; } if(0 != decoder->private_->residual[i]) {