[PATCH 4/7] shell32: Prevent user after free in error case (Coverity)