[PATCH 6.1.y] pps: Fix a use-after-free