Skip to content

Commit

Permalink
Merge pull request #203 from hoopoepg/topic/fixed-timerq-releasing-int3
Browse files Browse the repository at this point in the history
UCS/TIMERQ: fixed buffer release - int3
  • Loading branch information
yosefe authored Sep 7, 2021
2 parents 4a1b9c8 + 483dc98 commit 909d55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ucs/time/timerq.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ ucs_status_t ucs_timerq_remove(ucs_timer_queue_t *timerq, int timer_id)
/* TODO realloc - shrink */
if (timerq->num_timers == 0) {
ucs_assert(timerq->min_interval == UCS_TIME_INFINITY);
free(timerq->timers);
ucs_free(timerq->timers);
timerq->timers = NULL;
} else {
ucs_assert(timerq->min_interval != UCS_TIME_INFINITY);
Expand Down

0 comments on commit 909d55d

Please sign in to comment.