aboutsummaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/session.c b/session.c
index c5721c9a..b3ae2b42 100644
--- a/session.c
+++ b/session.c
@@ -123,7 +123,9 @@ session_create(const char *name, int argc, char **argv, const char *path,
s->environ = environ_create();
if (env != NULL)
environ_copy(env, s->environ);
+
s->options = options_create(global_s_options);
+ s->hooks = hooks_create(global_hooks);
s->tio = NULL;
if (tio != NULL) {
@@ -189,7 +191,9 @@ session_free(__unused int fd, __unused short events, void *arg)
if (s->references == 0) {
environ_free(s->environ);
+
options_free(s->options);
+ hooks_free(s->hooks);
free(s->name);
free(s);