[PATCH openEuler-1.0-LTS 2/2] moxart: fix potential use-after-free on remove path