On Tue, Jun 18, 2013 at 12:57 PM, Stijn Devriendt <[email protected]> wrote:
> On Thu, Jun 6, 2013 at 4:05 PM, Archit Taneja <[email protected]> wrote:

>> +static struct pcf857x_platform_data *of_gpio_pcf857x(struct device *dev)
>> +{
>> +       struct pcf857x_platform_data *pdata;
>> +       int r;
>> +
>> +       pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
>
>
> This memory is never freed, is it?

Why should it, given it's allocated with devres?

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to