Messages in this thread | | | Subject | Re: [v2] afs: Fix memory leak in afs_put_sysnames() | From | Markus Elfring <> | Date | Tue, 2 Jun 2020 07:51:01 +0200 |
| |
>> * Is freeing and releasing an item a duplicate operation anyhow? > > You're missing the point. afs_put_sysnames() does release the things the > object points to (ie. the content),
It is possible to distinguish the release of system resources for further items.
> but not the object itself.
How does this view fit to the proposed addition "kfree(sysnames);"? https://lore.kernel.org/linux-fsdevel/20200602013045.321855-1-chengzhihao1@huawei.com/ https://lore.kernel.org/patchwork/patch/1251323/
Regards, Markus
| |