From 69d6e7d94915e42acc6da8943af605e1db96e428 Mon Sep 17 00:00:00 2001 From: normal Date: Wed, 24 Jan 2018 22:40:01 +0000 Subject: 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 --- vm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'vm.c') 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); } -- cgit v1.2.3