uSockets icon indicating copy to clipboard operation
uSockets copied to clipboard

Memory leak in us_create_timer

Open abrownsword opened this issue 2 years ago • 1 comments

struct us_poll_t *p = us_create_poll(loop, fallthrough, sizeof(struct us_internal_callback_t) + ext_size);
int timerfd = timerfd_create(CLOCK_REALTIME, TFD_NONBLOCK | TFD_CLOEXEC);
if (timerfd == -1) {
  return NULL;
}

Leaks p if the timer fails to be created.

abrownsword avatar Nov 02 '23 17:11 abrownsword

Fixed in #231

partyblob avatar Oct 22 '24 23:10 partyblob