summaryrefslogtreecommitdiff
path: root/rts/RtsFlags.c
diff options
context:
space:
mode:
authornineonine <mail4chemik@gmail.com>2021-10-25 09:38:22 -0700
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-12-10 06:16:41 -0500
commitf573cb16debc5424e502b3777430c02ae6d0b475 (patch)
treedeb8abbab6a0ff0ab1df96a76a014d3d3017ccd1 /rts/RtsFlags.c
parent80a25502c1f9ac4597c9408931df1bf03cad5b9e (diff)
downloadhaskell-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/RtsFlags.c')
-rw-r--r--rts/RtsFlags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index 50de729183..11399e3103 100644
--- a/rts/RtsFlags.c
+++ b/rts/RtsFlags.c
@@ -2252,7 +2252,7 @@ static bool read_heap_profiling_flag(const char *arg)
RtsFlags.ProfFlags.bioSelector = selector;
break;
default:
- free(selector);
+ stgFree(selector);
}
}
break;