Revision: 16465
          http://sourceforge.net/p/edk2/code/16465
Author:   sfu5
Date:     2014-12-02 01:51:37 +0000 (Tue, 02 Dec 2014)
Log Message:
-----------
Fix memory leak in Ip4Config.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <[email protected]>
Reviewed-by: Fu Siyuan <[email protected]>
Reviewed-by: Tian Feng <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c

Modified: trunk/edk2/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c  
2014-12-02 00:44:04 UTC (rev 16464)
+++ trunk/edk2/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c  
2014-12-02 01:51:37 UTC (rev 16465)
@@ -1,6 +1,7 @@
 /** @file
   This code implements the IP4Config and NicIp4Config protocols.
 
+Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR>
 Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD 
License
@@ -656,7 +657,7 @@
     This->Dhcp4Handle = NULL;
   }
 
-  if (This->Dhcp4Event == NULL) {
+  if (This->Dhcp4Event != NULL) {
     gBS->CloseEvent (This->Dhcp4Event);
     This->Dhcp4Event = NULL;
   }


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to