[Linux-cachefs] [PATCH] cachefilesd: avoid memory leak on failure exit

David Howells dhowells at redhat.com
Mon Jan 14 17:21:32 UTC 2013


Wang Sheng-Hui <shhuiw at gmail.com> wrote:

> On failure exit, we may have allocated space for the culltalbes.
> Free the space before exit.

Why?  That's pointless.  On exit() the kernel will dispose of them anyway.
Quite likely, the memory won't be returned to the kernel at this point.

David




More information about the Linux-cachefs mailing list