aboutsummaryrefslogtreecommitdiff
path: root/src/librc-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc-misc.c')
-rw-r--r--src/librc-misc.c5
1 files changed, 4 insertions, 1 deletions
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);