settings_data: Guard against possible realloc/malloc failures
Merge pull request #975 from lioncash/realloc

settings_data: Guard against possible realloc/malloc failures