settings_data: Correctly handle realloc fail case
Merge pull request #1211 from lioncash/realloc

settings_data: Correctly handle realloc fail case