Fix failing autotest.

This commit is contained in:
Jan Vidar Krey 2018-11-21 09:18:01 +01:00
parent e3852b7fad
commit 602f1b8843
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@ static int result = 0;
EXO_TEST(setup, { EXO_TEST(setup, {
hub = hub_malloc_zero(sizeof(struct hub_info)); hub = hub_malloc_zero(sizeof(struct hub_info));
hub->config = hub_malloc_zero(sizeof(struct hub_config));
config_defaults(hub->config);
cbase = command_initialize(hub); cbase = command_initialize(hub);
hub->commands = cbase; hub->commands = cbase;
hub->users = uman_init(); hub->users = uman_init();
@ -246,6 +248,8 @@ EXO_TEST(command_destroy, {
EXO_TEST(cleanup, { EXO_TEST(cleanup, {
uman_shutdown(hub->users); uman_shutdown(hub->users);
command_shutdown(hub->commands); command_shutdown(hub->commands);
free_config(hub->config);
hub_free(hub->config);
hub_free(hub); hub_free(hub);
return 1; return 1;
}); });