summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-24 22:40:01 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-24 22:40:01 +0000
commit69d6e7d94915e42acc6da8943af605e1db96e428 (patch)
tree961cf997780fe600a1c2b620019e3584f226a207 /vm.c
parent7c8b79755b02c69cc92ab1ca99e175a06ecbdc55 (diff)
vm.c: remove unnecessary branch
th->altstack is never NULL, and even if it were, POSIX stipulates free(3) on NULL to be a no-op. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 cb6edbb..6c1c63e 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);
}