]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/BiosSnp16.c
Fix memory leak issues in BiosSnp module.
[mirror_edk2.git] / IntelFrameworkModulePkg / Csm / BiosThunk / Snp16Dxe / BiosSnp16.c
index 744a7e3453fb65342481722d29394b49c6d54921..05254100f1d465df494e3a75430854d82f3d78d2 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 1999 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -1260,6 +1260,11 @@ Undi16SimpleNetworkLoadUndi (
     if (!EFI_ERROR (Status)) {\r
       return EFI_SUCCESS;\r
     }\r
+    \r
+    //\r
+    // Free resources allocated in LaunchBaseCode\r
+    //\r
+    Undi16SimpleNetworkUnloadUndi (SimpleNetworkDevice);\r
   }\r
 \r
   return EFI_NOT_FOUND;\r