OK, Feng
I see there are always CoreFreePool(Node) that probably deallocates also 
ChildNode.
Sorry for the disturb.

On 16.07.2014, at 11:22, Tian, Feng wrote:

> Hi, Sergey
>  
> Could you let me know which line of CreateChildNode() returns error status 
> with allocated ChildNode?
>  
> Thanks
> Feng
>  
> From: Sergey Isakov [mailto:[email protected]] 
> Sent: Wednesday, July 16, 2014 14:52
> To: [email protected]
> Subject: [edk2] Resource leak at CoreSectionExtraction
>  
> Dear sirs,
>  
> Next report. File  
> edk2/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c:
> line  1007. Resource leak: CurrentChildNode
> -----
>     Status = CreateChildNode (SourceStream, 0, &CurrentChildNode);
>     if (EFI_ERROR (Status)) {
>       return Status;
>     }
>  
> -----
> because the procedure CreateChildNode()  may return bad status even if 
> CurrentChildNode  was successfully allocated.
>  
> Wishes,
> Sergey
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds_______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to