config-parser: Check malloc and strdup returns
config-parser: Check malloc and strdup returns

Signed-off-by: Bryce Harrington <bdb14cfc1ab8d24e13de84adc40b41ae60c13bd1@osg.samsung.com>
Reviewed-by: Marek Chalupa <a05df156a69ad59faa9af9b666ef78009594c145@gmail.com>

Gnurou/weston,giucam/weston,Fantu/compositor-spice,Fantu/compositor-spice,krezovic/weston,sir-murray/weston,Fantu/compositor-spice,krezovic/weston,Gnurou/weston,giucam/weston,sir-murray/weston