Skip to content

Commit

Permalink
fixup: compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
polarvid committed Oct 25, 2023
1 parent a5c4c85 commit fdcb6aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/libc/compilers/common/ctime.c
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,10 @@ int timer_create(clockid_t clockid, struct sigevent *evp, timer_t *timerid)

if (_timerid < 0)
{
#ifdef RT_USING_SMART
rt_free(param);
#endif /* RT_USING_SMART */

rt_free(timer);
rt_ktime_hrtimer_detach(&timer->hrtimer);
return -ENOSPC;
Expand Down

0 comments on commit fdcb6aa

Please sign in to comment.