ticket.81364: Fix cancel image request failure caused leak problem