decode: asap: Fix leaking file descriptor