config_file: Guard against calloc/malloc/realloc failure cases
Merge pull request #1014 from lioncash/deref

config_file: Guard against calloc/malloc/realloc failure cases