mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2025-01-03 14:56:35 -05:00
Do not xfree() something that wasn't x*alloc()'ed.
git-svn-id: https://svn.xiph.org/trunk/ezstream@13433 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
parent
b98f9a8f49
commit
f282e3d474
@ -124,14 +124,14 @@ metadata_use_taglib(metadata_t *md, FILE **filep)
|
||||
if (str != NULL) {
|
||||
if (strlen(str) > 0)
|
||||
md->artist = xstrdup(str);
|
||||
xfree(str);
|
||||
free(str);
|
||||
}
|
||||
|
||||
str = taglib_tag_title(tt);
|
||||
if (str != NULL) {
|
||||
if (strlen(str) > 0)
|
||||
md->title = xstrdup(str);
|
||||
xfree(str);
|
||||
free(str);
|
||||
}
|
||||
|
||||
md->songLen = taglib_audioproperties_length(ta);
|
||||
|
Loading…
Reference in New Issue
Block a user