Re: [PATCH 1/2] mm: vmpressure: don't need call kfree if kstrndup fails
On Tue, 11 Feb 2020, Yang Shi wrote:
> When kstrndup fails (returns NULL) there is no memory is allocated by > kmalloc, so no need to call kfree(). > > Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>