Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
2c718a26
Commit
2c718a26
authored
Oct 21, 2002
by
Josh Coalson
Browse files
fix bug in free()ing of output arrays
parent
88064945
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/stream_decoder.c
View file @
2c718a26
...
@@ -698,7 +698,7 @@ FLAC__bool allocate_output_(FLAC__StreamDecoder *decoder, unsigned size, unsigne
...
@@ -698,7 +698,7 @@ FLAC__bool allocate_output_(FLAC__StreamDecoder *decoder, unsigned size, unsigne
for
(
i
=
0
;
i
<
FLAC__MAX_CHANNELS
;
i
++
)
{
for
(
i
=
0
;
i
<
FLAC__MAX_CHANNELS
;
i
++
)
{
if
(
0
!=
decoder
->
private_
->
output
[
i
])
{
if
(
0
!=
decoder
->
private_
->
output
[
i
])
{
free
(
decoder
->
private_
->
output
[
i
]);
free
(
decoder
->
private_
->
output
[
i
]
-
4
);
decoder
->
private_
->
output
[
i
]
=
0
;
decoder
->
private_
->
output
[
i
]
=
0
;
}
}
if
(
0
!=
decoder
->
private_
->
residual
[
i
])
{
if
(
0
!=
decoder
->
private_
->
residual
[
i
])
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment