diff options
author | nineonine <mail4chemik@gmail.com> | 2021-10-25 09:38:22 -0700 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-12-10 06:16:41 -0500 |
commit | f573cb16debc5424e502b3777430c02ae6d0b475 (patch) | |
tree | deb8abbab6a0ff0ab1df96a76a014d3d3017ccd1 /rts/win32 | |
parent | 80a25502c1f9ac4597c9408931df1bf03cad5b9e (diff) | |
download | haskell-f573cb16debc5424e502b3777430c02ae6d0b475.tar.gz |
rts: use allocation helpers from RtsUtils
Just a tiny cleanup inspired by the following comment:
https://gitlab.haskell.org/ghc/ghc/-/issues/19437#note_334271
I was just getting familiar with rts code base so I
thought might as well do this.
Diffstat (limited to 'rts/win32')
-rw-r--r-- | rts/win32/WorkQueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/win32/WorkQueue.c b/rts/win32/WorkQueue.c index 1f4fb6a467..1d2e9c7a41 100644 --- a/rts/win32/WorkQueue.c +++ b/rts/win32/WorkQueue.c @@ -68,7 +68,7 @@ FreeWorkQueue ( WorkQueue* pq ) /* Free any remaining work items. */ for (i = 0; i < WORKQUEUE_SIZE; i++) { if (pq->items[i] != NULL) { - free(pq->items[i]); + stgFree(pq->items[i]); } } @@ -82,7 +82,7 @@ FreeWorkQueue ( WorkQueue* pq ) CloseHandle(pq->roomAvailable); } OS_CLOSE_LOCK(&pq->queueLock); - free(pq); + stgFree(pq); return; } |