Use ddsrt_malloc in macOS socket waitset code
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
12d2a82823
commit
0b8fd9fcc0
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ os_sockWaitset os_sockWaitsetNew (void)
|
|||
ws->ctx.nevs = 0;
|
||||
ws->ctx.index = 0;
|
||||
ws->ctx.evs_sz = sz;
|
||||
if ((ws->ctx.evs = malloc (ws->ctx.evs_sz * sizeof (*ws->ctx.evs))) == NULL)
|
||||
if ((ws->ctx.evs = ddsrt_malloc (ws->ctx.evs_sz * sizeof (*ws->ctx.evs))) == NULL)
|
||||
goto fail_ctx_evs;
|
||||
if ((ws->kqueue = kqueue ()) == -1)
|
||||
goto fail_kqueue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue