1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-11-03 04:17:18 -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:
moritz 2007-08-04 16:09:50 +00:00
parent b98f9a8f49
commit f282e3d474

View File

@ -124,14 +124,14 @@ metadata_use_taglib(metadata_t *md, FILE **filep)
if (str != NULL) { if (str != NULL) {
if (strlen(str) > 0) if (strlen(str) > 0)
md->artist = xstrdup(str); md->artist = xstrdup(str);
xfree(str); free(str);
} }
str = taglib_tag_title(tt); str = taglib_tag_title(tt);
if (str != NULL) { if (str != NULL) {
if (strlen(str) > 0) if (strlen(str) > 0)
md->title = xstrdup(str); md->title = xstrdup(str);
xfree(str); free(str);
} }
md->songLen = taglib_audioproperties_length(ta); md->songLen = taglib_audioproperties_length(ta);