[coreboot-gerrit] [S] Change in coreboot[master]: Fix potential NULL pointer dereferences and memory leak