mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-01-03 14:56:34 -05:00
Fix: memory leak, now also releasing reglist[] members
This commit is contained in:
parent
8702999204
commit
2a99aa0f0b
@ -36,12 +36,17 @@ static void event_addref(event_t *event) {
|
||||
}
|
||||
|
||||
static void event_release(event_t *event) {
|
||||
size_t i;
|
||||
|
||||
if (!event)
|
||||
return;
|
||||
event->refcount--;
|
||||
if (event->refcount)
|
||||
return;
|
||||
|
||||
for (i = 0; i < (sizeof(event->reglist)/sizeof(*event->reglist)); i++)
|
||||
event_registration_release(event->reglist[i]);
|
||||
|
||||
free(event->trigger);
|
||||
free(event->uri);
|
||||
free(event->connection_ip);
|
||||
|
Loading…
Reference in New Issue
Block a user