simplify and improve double-free check
[musl] / crt / crt1.c