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

Merge two free() calls.
This commit is contained in:
Max Kellermann 2015-01-29 08:23:01 +01:00
parent 8b5f47d3a3
commit 56662a703c

View File

@ -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