1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-11-03 04:17:17 -05:00

Fix: Fixed memory leak in __build_node_name()

This commit is contained in:
Philipp Schafft 2022-03-07 13:16:35 +00:00
parent 6d6873dea7
commit 5211e0debf

View File

@ -427,7 +427,7 @@ static char *__build_node_name(xmlNodePtr node)
memset(buf, 0, sizeof(buf));
for (have = 0; have < (sizeof(buf)/sizeof(*buf)); have++) {
for (have = 0; have < (sizeof(buf)/sizeof(*buf)) && node->parent; have++) {
int ret = -1;
xmlChar *id;
@ -462,8 +462,6 @@ static char *__build_node_name(xmlNodePtr node)
}
node = node->parent;
if (!node)
break;
}
for (i = 0; i < (sizeof(buf)/sizeof(*buf)); i++) {