You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(network_monitor): Delete previously allocated events in contiki
Now events are forwarded to C++ handler functions by reference, instead of
pointers, it is safer to avoid potential use on null pointers.
So now on, previously allocated (in post) user data are freed just after
handling them.
I am assuming that once events are posted, the owner is the contiki
event loop, which should free events data once consumed by handler.
In other works contiki is managing the lifecyle of user data.
Note that once event if processed, the address still remain in contiki
queue but no more referenced since the queue pointer is moving to the
next one.
A later change for contiki can explicitly set the consumed pointer to
null in consumed queue cell.
Relate-to: UIC-3659
Relate-to: SiliconLabsSoftware/z-wave-engine-application-layer#17
Signed-off-by: Philippe Coval <[email protected]>
0 commit comments