aboutsummaryrefslogtreecommitdiff
path: root/openvpn.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--openvpn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openvpn.c b/openvpn.c
index d3c36f9..f1bf169 100644
--- a/openvpn.c
+++ b/openvpn.c
@@ -130,7 +130,7 @@ main (int argc, char *argv[])
gc_init (&c.gc);
/* initialize environmental variable store */
- c.es = env_set_create (&c.gc);
+ c.es = env_set_create (NULL);
#ifdef ENABLE_MANAGEMENT
/* initialize management subsystem */
@@ -233,6 +233,8 @@ main (int argc, char *argv[])
context_gc_free (&c);
+ env_set_destroy (c.es);
+
#ifdef ENABLE_MANAGEMENT
/* close management interface */
close_management ();