aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shared/misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/misc.c b/src/shared/misc.c
index d8e4d5e6..a83599e5 100644
--- a/src/shared/misc.c
+++ b/src/shared/misc.c
@@ -74,8 +74,10 @@ env_filter(void)
* If '*' is an entry in rc_env_allow, do nothing as we are to pass
* through all environment variables.
*/
- if (rc_stringlist_find(env_allow, "*"))
+ if (rc_stringlist_find(env_allow, "*")) {
+ rc_stringlist_free(env_allow);
return;
+ }
profile = rc_config_load(RC_PROFILE_ENV);
/* Copy the env and work from this so we can manipulate it safely */