[openEuler-5.10 307/557] hwmon: Fix possible memleak in __hwmon_device_register()