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
56662a70
Commit
56662a70
authored
Jan 29, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/DsdLib: free ID3 buffer right after id3_tag_parse()
Merge two free() calls.
parent
8b5f47d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
DsdLib.cxx
src/decoder/plugins/DsdLib.cxx
+1
-4
No files found.
src/decoder/plugins/DsdLib.cxx
View file @
56662a70
...
@@ -136,16 +136,13 @@ dsdlib_tag_id3(InputStream &is,
...
@@ -136,16 +136,13 @@ dsdlib_tag_id3(InputStream &is,
}
}
struct
id3_tag
*
id3_tag
=
id3_tag_parse
(
id3_buf
,
count
);
struct
id3_tag
*
id3_tag
=
id3_tag_parse
(
id3_buf
,
count
);
if
(
id3_tag
==
nullptr
)
{
free
(
id3_buf
);
free
(
id3_buf
);
if
(
id3_tag
==
nullptr
)
return
;
return
;
}
scan_id3_tag
(
id3_tag
,
handler
,
handler_ctx
);
scan_id3_tag
(
id3_tag
,
handler
,
handler_ctx
);
id3_tag_delete
(
id3_tag
);
id3_tag_delete
(
id3_tag
);
free
(
id3_buf
);
return
;
return
;
}
}
#endif
#endif
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