Commit 56662a70 authored by Max Kellermann's avatar Max Kellermann

decoder/DsdLib: free ID3 buffer right after id3_tag_parse()

Merge two free() calls.
parent 8b5f47d3
......@@ -136,16 +136,13 @@ dsdlib_tag_id3(InputStream &is,
}
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;
}
scan_id3_tag(id3_tag, handler, handler_ctx);
id3_tag_delete(id3_tag);
free(id3_buf);
return;
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment