Added config_fini() function, to cleanup all memory that was allocated for configuration