diff options
Diffstat (limited to 'rts/win32/WorkQueue.c')
-rw-r--r-- | rts/win32/WorkQueue.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/rts/win32/WorkQueue.c b/rts/win32/WorkQueue.c index dba20c668b..e89092f122 100644 --- a/rts/win32/WorkQueue.c +++ b/rts/win32/WorkQueue.c @@ -41,12 +41,7 @@ newSemaphore(int initCount, int max) WorkQueue* NewWorkQueue() { - WorkQueue* wq = (WorkQueue*)malloc(sizeof(WorkQueue)); - - if (!wq) { - queue_error("NewWorkQueue", "malloc() failed"); - return wq; - } + WorkQueue* wq = (WorkQueue*)stgMallocBytes(sizeof(WorkQueue), "NewWorkQueue"); memset(wq, 0, sizeof *wq); |