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
This commit is contained in:
normal 2018-01-24 22:40:01 +00:00
parent 7c8b79755b
commit 69d6e7d949

4
vm.c
View File

@ -2439,9 +2439,7 @@ thread_free(void *ptr)
} }
else { else {
#ifdef USE_SIGALTSTACK #ifdef USE_SIGALTSTACK
if (th->altstack) { free(th->altstack);
free(th->altstack);
}
#endif #endif
ruby_xfree(ptr); ruby_xfree(ptr);
} }