Re: EDAC: Fix memory leak in creating CSROW object
From: Borislav Petkov
Date: Thu Apr 18 2019 - 13:25:56 EST
On Thu, Apr 18, 2019 at 10:27:18AM +0800, Pan Bian wrote:
> In the function that creates a CSROW object, the object is not released
> when failing to add the device to device hierarchy.
Are you sure about this?
> This may result in a memory leak bug.
"May"?
I see a loop which unwinds by putting the already created devices. Do
you?
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.