Fix mutex init/free in config_file.c