diff options
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index d554ae7fb..440fb65e6 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -826,6 +826,10 @@ check_classifier_conf (struct config_file *cfg, struct classifier_config *c) c->opts = g_hash_table_new (g_str_hash, g_str_equal); memory_pool_add_destructor (cfg->cfg_pool, (pool_destruct_func) g_hash_table_destroy, c->opts); } + if (c->labels == NULL) { + c->labels = g_hash_table_new (g_str_hash, g_str_equal); + memory_pool_add_destructor (cfg->cfg_pool, (pool_destruct_func) g_hash_table_destroy, c->labels); + } return c; } |