This invokes the freeCB callback function which is in charge of release allocated
resources in the timer callback. This was only called on a normal stop of a timer
not when called manually by TimerEvtStop.
Change-Id: I750a62ee0662b905107f53d070add1e8ccba77f8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
}
void TimerEvtStop(TimerHandleT *timerHandle) {
-
sd_event_source_unref(timerHandle->evtSource);
+ if (timerHandle->freeCB) timerHandle->freeCB(timerHandle->context);
free (timerHandle);
}