mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-13 06:38:10 -05:00
Ummm.... maybe that's the huge memory loss that's triggering the oom killer? Hmmm?
This commit is contained in:
parent
c4c8693df9
commit
cb37ce4fea
@ -285,8 +285,10 @@ int scan_xml_playlist(char *filename) {
|
|||||||
for(key = ezxml_child(maindict,"key"); key; key=key->next) {
|
for(key = ezxml_child(maindict,"key"); key; key=key->next) {
|
||||||
DPRINTF(E_SPAM,L_SCAN,"Found key %s\n",key->txt);
|
DPRINTF(E_SPAM,L_SCAN,"Found key %s\n",key->txt);
|
||||||
value = key->ordered;
|
value = key->ordered;
|
||||||
if(!value) /* badly formed xml file */
|
if(!value) { /* badly formed xml file */
|
||||||
|
ezxml_free(itpl);
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if(!scan_xml_itunes_version && (strcasecmp(key->txt,"Application Version") == 0)) {
|
if(!scan_xml_itunes_version && (strcasecmp(key->txt,"Application Version") == 0)) {
|
||||||
scan_xml_itunes_version=strdup(value->txt);
|
scan_xml_itunes_version=strdup(value->txt);
|
||||||
@ -301,6 +303,7 @@ int scan_xml_playlist(char *filename) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ezxml_free(itpl);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user