Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
flac
Commits
952c93b2
Commit
952c93b2
authored
Apr 09, 2017
by
Erik de Castro Lopo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
metaflac: Fix a memory leak
parent
4f47b63e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/metaflac/operations.c
src/metaflac/operations.c
+3
-1
No files found.
src/metaflac/operations.c
View file @
952c93b2
...
...
@@ -286,7 +286,8 @@ FLAC__bool do_shorthand_operations_on_file(const char *filename, const CommandLi
if
(
!
FLAC__metadata_chain_read
(
chain
,
filename
))
{
print_error_with_chain_status
(
chain
,
"%s: ERROR: reading metadata"
,
filename
);
return
false
;
ok
=
false
;
goto
cleanup
;
}
for
(
i
=
0
;
i
<
options
->
ops
.
num_operations
&&
ok
;
i
++
)
{
...
...
@@ -325,6 +326,7 @@ FLAC__bool do_shorthand_operations_on_file(const char *filename, const CommandLi
print_error_with_chain_status
(
chain
,
"%s: ERROR: writing FLAC file"
,
filename
);
}
cleanup
:
FLAC__metadata_chain_delete
(
chain
);
return
ok
;
...
...
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