Avoid invalid free() when disposing Event instances
Reported by Дилян Палаузов <git-dpa@aegee.org>, thanks!
This commit is contained in:
parent
089ce1cc3d
commit
4aacdf9b95
|
@ -113,7 +113,7 @@ void event_delete(Event * event)
|
||||||
|
|
||||||
for(i = 0; i < array_count(event->timeouts); i++)
|
for(i = 0; i < array_count(event->timeouts); i++)
|
||||||
{
|
{
|
||||||
array_get_copy(event->writes, i, &et);
|
array_get_copy(event->timeouts, i, &et);
|
||||||
object_delete(et);
|
object_delete(et);
|
||||||
}
|
}
|
||||||
array_delete(event->timeouts);
|
array_delete(event->timeouts);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user