From 602f1b88439301ade120f2e2a0a5bc876ed06bb5 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Wed, 21 Nov 2018 09:18:01 +0100 Subject: [PATCH] Fix failing autotest. --- autotest/test_commands.tcc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autotest/test_commands.tcc b/autotest/test_commands.tcc index eb73f57..4e81001 100644 --- a/autotest/test_commands.tcc +++ b/autotest/test_commands.tcc @@ -17,6 +17,8 @@ static int result = 0; EXO_TEST(setup, { 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); hub->commands = cbase; hub->users = uman_init(); @@ -246,6 +248,8 @@ EXO_TEST(command_destroy, { EXO_TEST(cleanup, { uman_shutdown(hub->users); command_shutdown(hub->commands); + free_config(hub->config); + hub_free(hub->config); hub_free(hub); return 1; });