X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fconfigfile.c;h=8b526f2e958902a5dcbb22a674b0c0caa267f44f;hb=3c316743f0dccb70e49a10ed44951dd4b289d9f0;hp=4a9789ae0a39e79285db024a457f9a5dc6e29fff;hpb=4d36d5826a3853ccd62195daf3b831d942850f1a;p=collectd.git diff --git a/src/configfile.c b/src/configfile.c index 4a9789ae..8b526f2e 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -328,7 +328,7 @@ static int dispatch_block_plugin (oconfig_item_t *ci) if (ci->children[i].children == NULL) dispatch_value_plugin (name, ci->children + i); else - {DEBUG ("No nested config blocks allow for this plugin.");} + {DEBUG ("No nested config blocks allowed for this plugin.");} } return (0); @@ -888,7 +888,11 @@ int cf_read (char *filename) dispatch_block (conf->children + i); } + oconfig_free (conf); + + /* Read the default types.db if no `TypesDB' option was given. */ if (cf_default_typesdb) - read_types_list (PLUGINDIR"/types.db"); /* FIXME: Configure path */ + read_types_list (PLUGINDIR"/types.db"); + return (0); } /* int cf_read */