[PATCH openEuler-1.0-LTS] recordmcount: Fix memory leaks in the uwrite function