version 1.60, 2015/11/18 14:27:44 |
version 1.61, 2015/12/08 01:10:31 |
|
|
s->environ = environ_create(); |
s->environ = environ_create(); |
if (env != NULL) |
if (env != NULL) |
environ_copy(env, s->environ); |
environ_copy(env, s->environ); |
|
|
s->options = options_create(global_s_options); |
s->options = options_create(global_s_options); |
|
s->hooks = hooks_create(global_hooks); |
|
|
s->tio = NULL; |
s->tio = NULL; |
if (tio != NULL) { |
if (tio != NULL) { |
|
|
|
|
if (s->references == 0) { |
if (s->references == 0) { |
environ_free(s->environ); |
environ_free(s->environ); |
|
|
options_free(s->options); |
options_free(s->options); |
|
hooks_free(s->hooks); |
|
|
free(s->name); |
free(s->name); |
free(s); |
free(s); |