Re: [PATCH] pstore/ram: Fix memory leak in persistent_ram_new

From: Markus Elfring
Date: Fri Dec 13 2019 - 12:09:09 EST

> In the implementation of persistent_ram_new(), if the allocation for prz
> fails, "label" should be released as part of error handling.

How did you come to this conclusion?

I suggest to reconsider this patch because the mentioned string is passed by
a function parameter.

I recognise other implementation details which could be improved here.