summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm.c b/vm.c
index cb6edbb5c1..6c1c63e37e 100644
--- a/vm.c
+++ b/vm.c
@@ -2439,9 +2439,7 @@ thread_free(void *ptr)
}
else {
#ifdef USE_SIGALTSTACK
- if (th->altstack) {
- free(th->altstack);
- }
+ free(th->altstack);
#endif
ruby_xfree(ptr);
}