add CHECK_malloc macro, change to single "happy path"
add CHECK_malloc macro, change to single "happy path"

smistad/OpenCL-Getting-Started,linan7788626/OpenCL-Getting-Started,smistad/OpenCL-Getting-Started