exit properly on malloc failure
exit properly on malloc failure

mikeryan/ems-flasher,Wookie/ems-flasher,chastai/ems-flasher,gheja/ems-flasher,Drenn1/ems-flasher,chastai/ems-flasher,zarkone/ems-flasher,mikeryan/ems-flasher,bentley/ems-flasher2,chastai/ems-flasher-multi,chastai/ems-flasher-multi,deathowl/ems-flasher