xmv: do not leak memory in the error paths in xmv_read_header()