Conflicts:

Makefile
This commit is contained in:
Thomas Adam
2015-12-08 07:11:09 +00:00
12 changed files with 366 additions and 19 deletions

View File

@ -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);