diff options
-rw-r--r-- | rts/posix/OSMem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c index 330da21e1f..6ccd65ab16 100644 --- a/rts/posix/OSMem.c +++ b/rts/posix/OSMem.c @@ -601,7 +601,9 @@ uint64_t osNumaMask(void) if (osNumaNodes() > sizeof(StgWord)*8) { barf("osNumaMask: too many NUMA nodes (%d)", osNumaNodes()); } - return mask->maskp[0]; + uint64_t r = mask->maskp[0]; + numa_bitmask_free(mask); + return r; #else return 1; #endif |