From: Timo Sirainen Date: Mon, 18 May 2009 01:02:38 +0000 (-0400) Subject: env_clean(): Clear the environment memory pool also. X-Git-Tag: 2.0.alpha1~733 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddf487be7e31ff34d434405566e9255c6dcd7532;p=thirdparty%2Fdovecot%2Fcore.git env_clean(): Clear the environment memory pool also. We trust that nowadays our environment clearing code works everywhere. --HG-- branch : HEAD --- diff --git a/src/lib/env-util.c b/src/lib/env-util.c index c73616be1d..47feb4e31c 100644 --- a/src/lib/env-util.c +++ b/src/lib/env-util.c @@ -56,6 +56,6 @@ void env_clean(void) */ 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); }