1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Fix: Fixed memory leak on relay parsing failure

This commit is contained in:
Marvin Scholz 2020-04-19 03:02:03 +02:00
parent 2ffaa92ea6
commit d2b137a8ad

View File

@ -1810,6 +1810,7 @@ static void _parse_relay(xmlDocPtr doc,
relay_config_t **n = realloc(configuration->relay, sizeof(*configuration->relay)*(configuration->relay_length + 1));
if (!n) {
free(relay);
ICECAST_LOG_ERROR("Can not allocate memory for additional relay.");
return;
}