config.c: Fix a memory leak on error [i].
config.c: Fix a memory leak on error [ii].