# HG changeset patch # User Timo Sirainen # Date 1242608558 14400 # Node ID 843f81083d0faefc19c9758477ae44f5ab0bd32e # Parent eb748e01a42b39b827c7c28264a64f6f71ed110f env_clean(): Clear the environment memory pool also. We trust that nowadays our environment clearing code works everywhere. diff -r eb748e01a42b -r 843f81083d0f src/lib/env-util.c --- a/src/lib/env-util.c Sun May 17 21:01:45 2009 -0400 +++ b/src/lib/env-util.c Sun May 17 21:02:38 2009 -0400 @@ -56,6 +56,6 @@ */ environ = calloc(1, sizeof(*environ)); #endif - /* don't clear the env_pool, otherwise the environment would get - corrupted if we failed to clear it. */ + if (env_pool != NULL) + p_clear(env_pool); }