digital: Fix alloc bug in HDLC deframer and make Coverity happy.