From ddf487be7e31ff34d434405566e9255c6dcd7532 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 17 May 2009 21:02:38 -0400 Subject: [PATCH] env_clean(): Clear the environment memory pool also. We trust that nowadays our environment clearing code works everywhere. --HG-- branch : HEAD --- src/lib/env-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.47.3