ALSA: timer: fix NULL pointer dereference on memory allocation failure