mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +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
6c2fdc1ac6
commit
3fa129172a
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) {
|
if (time(NULL) > r->fire) {
|
||||||
lwsl_notice("%s: firing timer\n", __func__);
|
lwsl_notice("%s: firing timer\n", __func__);
|
||||||
dbus_timeout_handle(r->data);
|
dbus_timeout_handle(r->data);
|
||||||
lws_dll2_remove(rdt);
|
|
||||||
lws_free(rdt);
|
|
||||||
}
|
}
|
||||||
} lws_end_foreach_dll_safe(rdt, nx);
|
} lws_end_foreach_dll_safe(rdt, nx);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue