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