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:
parent
2ffaa92ea6
commit
d2b137a8ad
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user