amt: fix possible memory leak in amt_rcv()