summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-12-08 07:11:09 +0000
committerThomas Adam <thomas@xteddy.org>2015-12-08 07:11:09 +0000
commit5862f59ed7c54959af6d112a647ae3c273579b77 (patch)
tree4cba465137c22437f602775f100d22b9ea9794cd /session.c
parent98994a8bb1ca7602f16a5de0d4482efd299f5d7b (diff)
parentd2fb0efcd197bf0d581a0f7b1e27223d095cb339 (diff)
Conflicts:
Makefile
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 09e3898e..bd046aef 100644
--- a/session.c
+++ b/session.c
@@ -122,7 +122,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) {
@@ -188,7 +190,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);