[PATCH 4.14 19/46] hwmon: (core) Fix double-free in __hwmon_device_register()