mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
dbus: prevent double free timeout event
SUL callback triggers a dbus timeout handle, handle removes the linked list entry and free's the memory attached to the entry. Remove the code where the the entry was removed by the timer callback, which triggered a double free of the same linked list entry.
This commit is contained in:
parent
5371621d48
commit
3b5b0078c5
1 changed files with 0 additions and 2 deletions
|
@ -293,8 +293,6 @@ lws_dbus_sul_cb(lws_sorted_usec_list_t *sul)
|
|||
if (time(NULL) > r->fire) {
|
||||
lwsl_notice("%s: firing timer\n", __func__);
|
||||
dbus_timeout_handle(r->data);
|
||||
lws_dll2_remove(rdt);
|
||||
lws_free(rdt);
|
||||
}
|
||||
} lws_end_foreach_dll_safe(rdt, nx);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue