[PATCH openEuler-5.10 237/582] crypto: sm2 - fix a memory leak in sm2