shiv.cpp: read_config(): Fix potential NULL pointer dereference.
shiv.cpp: read_config(): Fix potential NULL pointer dereference.

Also free memory in read_config() to make the clang static analyzer
happy.

bmc0/shiv,bmc0/shiv,bmc0/shiv