Bugfix: Fix memory leak
This commit is contained in:
parent
8ec7a1f81c
commit
e0f7e253ff
|
@ -69,6 +69,7 @@ static bool event_is_ignored(const int sequence) {
|
||||||
if (event->sequence == sequence) {
|
if (event->sequence == sequence) {
|
||||||
LOG("Ignoring event (sequence %d)\n", sequence);
|
LOG("Ignoring event (sequence %d)\n", sequence);
|
||||||
SLIST_REMOVE(&ignore_events, event, Ignore_Event, ignore_events);
|
SLIST_REMOVE(&ignore_events, event, Ignore_Event, ignore_events);
|
||||||
|
free(event);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue