clipboard: check for NULL malloc result

If malloc fails to allocate memory for a clipboard_client, close
the file descriptor (fd) and return.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
gl-renderer: check for NULL malloc result

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
backlight: fix backlight_path memory leak

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
log: print dummy timestamp if localtime call fails

Handle the case where localtime fails (NULL) and print
something else to indicate localtime is erroneous.

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