Revert "Fix the memory leak problem when HAVE_ENVIRON is defined"

This reverts commit b0f621fbeabc760be9d74bb1c3d3dd6134145ff9.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>