Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9052:843f81083d0f HEAD
env_clean(): Clear the environment memory pool also.
We trust that nowadays our environment clearing code works everywhere.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 17 May 2009 21:02:38 -0400 |
parents | eb748e01a42b |
children | b52f165fccd8 |
files | src/lib/env-util.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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); }