waitpid(): set options param to 0 if not specified
some tests for the env module
prevent double free in buffer
protect file.Stat from double free