screenshooter: check for NULL malloc and fix memleak

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>