Reviewed-by: Jiaxin Wu <[email protected]>
> -----Original Message----- > From: edk2-devel [mailto:[email protected]] On Behalf Of Fu, > Siyuan > Sent: Wednesday, December 13, 2017 10:16 AM > To: [email protected] > Cc: Ye, Ting <[email protected]>; Wang, Fan <[email protected]>; Wu, > Jiaxin <[email protected]> > Subject: [edk2] [Patch] MdeModulePkg/Ip4Dxe: Clean up IP4 interface if > failed to open ARP protocol. > > This patch fixes a bug in Ip4ConfigProtocol, that new created IP interface is > not freed if Open ARP protocol failed. > > Cc: Ye Ting <[email protected]> > Cc: Wu Jiaxin <[email protected]> > Cc: Wang Fan <[email protected]> > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Fu Siyuan <[email protected]> > --- > MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c > b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c > index fc5812e4ab..ac48ad2584 100644 > --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c > +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c > @@ -727,6 +727,7 @@ Ip4ConfigProtocol ( > EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER > ); > if (EFI_ERROR (Status)) { > + Ip4FreeInterface (IpIf, IpInstance); > goto ON_ERROR; > } > } > -- > 2.13.0.windows.1 > > _______________________________________________ > edk2-devel mailing list > [email protected] > https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

