Re: [PATCH] nvme: don't free uuid pointer before printing it

From: Christoph Hellwig
Date: Thu Jan 25 2018 - 10:21:03 EST


On Thu, Jan 25, 2018 at 09:09:25AM +0100, Johannes Thumshirn wrote:
> Commit df351ef73789 ("nvme-fabrics: fix memory leak when parsing host ID
> option") fixed the leak of 'p' but in case uuid_parse() fails the memory
> is freed before the error print that is using it.
>
> Free it after printing eventual errors.

Thanks,

applied to nvme-4.16.