Closed HsuJv closed 4 years ago
Looks OK. Maybe put it first in the scope (reverse order of allocation, etc.). e.g. if (t != ODP_TIMER_SUCCESS) { odp_timer_free(timer); odp_timeout_free(tmo); odp_buffer_free(buf); OFP_ERR("odp_timer_set_abs failed"); return ODP_TIMER_INVALID; }
Hi there,
Do you think it's necessary to free the timer after set_abs failed?
see the line that arrowed.
Anyone could give an answer? I can't figure out where the timer to be freed if
odp_timer_set_abs
returns any value rather thanODP_TIMER_SUCCESS
@matiaselo @JereLeppanen
Regards.