simplify stack_clear()
Merge branch 'master' into iij