From 81c009e47d3a0779cee32e2a90e5a479bbaa790e Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 18 Sep 2007 15:43:19 +0000 Subject: Don't be an ass - don't free the 2nd list. Instead just empty it. --- src/librc-misc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/librc-misc.c') diff --git a/src/librc-misc.c b/src/librc-misc.c index 9bac7902..4c40cfbf 100644 --- a/src/librc-misc.c +++ b/src/librc-misc.c @@ -462,7 +462,10 @@ char **rc_filter_env (void) if (! whitelist) ewarn ("system environment whitelist (" SYS_WHITELIST ") missing"); - rc_strlist_join (&whitelist, rc_get_list (USR_WHITELIST)); + env = rc_get_list (USR_WHITELIST); + rc_strlist_join (&whitelist, env); + rc_strlist_free (env); + env = NULL; if (! whitelist) return (NULL); -- cgit v1.2.3