diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-24 22:40:01 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-24 22:40:01 +0000 |
commit | 69d6e7d94915e42acc6da8943af605e1db96e428 (patch) | |
tree | 961cf997780fe600a1c2b620019e3584f226a207 /vm.c | |
parent | 7c8b79755b02c69cc92ab1ca99e175a06ecbdc55 (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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); } |