out:
udev_device_unref(device);
udev_unref(udev);
fclose(file);
if (file)
free(sysfs_path);
return model;
}