Messages in this thread | | | Date | Mon, 07 Nov 2011 17:39:18 +0000 | From | Jonathan Cameron <> | Subject | Re: [PATCH 4/5] IIO:hwmon interface client driver. |
| |
>> +static int __devexit iio_hwmon_remove(struct platform_device *pdev) >> +{ >> + struct iio_hwmon_state *st = platform_get_drvdata(pdev); >> + >> + hwmon_device_unregister(st->hwmon_dev); >> + sysfs_remove_group(&pdev->dev.kobj, &st->attr_group); >> + iio_hwmon_free_attrs(st); >> + kfree(st->attrs); >> + iio_channel_release_all(st->channels); >> + > > Either I missed it before, or I am missing something now ... should > there be kfree(st) here ? > > Thanks, > Guenter
Gah! you are quite right. Good spot. I'll fix that one up and repost this individual patch.
| |