diff --git a/src/client/libdistren_config.c b/src/client/libdistren_config.c --- a/src/client/libdistren_config.c +++ b/src/client/libdistren_config.c @@ -38,8 +38,10 @@ int _distren_getoptions(distren_t handle CFG_STR("server", NULL, 0), CFG_END() }; - - if(options_init(0, NULL, &cfg, cfg_opts, "client", &handle->options)) + + handle->multiio = multiio_context_new(); + + if(options_init(0, NULL, &cfg, cfg_opts, "client", &handle->options, handle->multiio)) { fprintf(stderr, "error getting configuration\n"); return 1; @@ -57,6 +59,7 @@ int _distren_getoptions(distren_t handle int _distren_loseoptions(distren_t handle) { options_free(handle->options); + multiio_context_free(handle->multiio); return 0; }