Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
56d2b510
Commit
56d2b510
authored
Nov 06, 2008
by
Laszlo Ashin
Committed by
Max Kellermann
Nov 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wavpack: close wvc stream on error
The input stream opened for wvc is not closed in an if branch. A close call has been added.
parent
089c9b7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wavpack_plugin.c
src/decoder/wavpack_plugin.c
+3
-1
No files found.
src/decoder/wavpack_plugin.c
View file @
56d2b510
...
...
@@ -471,8 +471,10 @@ wavpack_open_wvc(struct decoder *decoder, struct input_stream *is_wvc,
*/
nbytes
=
decoder_read
(
decoder
,
is_wvc
,
&
first_byte
,
sizeof
(
first_byte
));
if
(
nbytes
==
0
)
if
(
nbytes
==
0
)
{
input_stream_close
(
is_wvc
);
return
false
;
}
/* push it back */
wavpack_input_init
(
wpi
,
decoder
,
is_wvc
);
...
...
Write
Preview
Markdown
is supported
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