hdlc: fix null-deref on allocation failure