Revision: 14877
          http://sourceforge.net/p/edk2/code/14877
Author:   jljusten
Date:     2013-11-20 22:31:14 +0000 (Wed, 20 Nov 2013)
Log Message:
-----------
OvmfPkg/QemuVideoDxe: don't leak descriptors returned by GetBarAttributes

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>

Modified Paths:
--------------
    trunk/edk2/OvmfPkg/QemuVideoDxe/Driver.c
    trunk/edk2/OvmfPkg/QemuVideoDxe/Gop.c

Modified: trunk/edk2/OvmfPkg/QemuVideoDxe/Driver.c
===================================================================
--- trunk/edk2/OvmfPkg/QemuVideoDxe/Driver.c    2013-11-20 19:07:31 UTC (rev 
14876)
+++ trunk/edk2/OvmfPkg/QemuVideoDxe/Driver.c    2013-11-20 22:31:14 UTC (rev 
14877)
@@ -305,6 +305,10 @@
       DEBUG ((EFI_D_INFO, "QemuVideo: Using mmio bar @ 0x%lx\n",
               MmioDesc->AddrRangeMin));
     }
+
+    if (!EFI_ERROR (Status)) {
+      FreePool (MmioDesc);
+    }
   }
 
   //

Modified: trunk/edk2/OvmfPkg/QemuVideoDxe/Gop.c
===================================================================
--- trunk/edk2/OvmfPkg/QemuVideoDxe/Gop.c       2013-11-20 19:07:31 UTC (rev 
14876)
+++ trunk/edk2/OvmfPkg/QemuVideoDxe/Gop.c       2013-11-20 22:31:14 UTC (rev 
14877)
@@ -72,6 +72,7 @@
   Mode->FrameBufferSize = Mode->FrameBufferSize * ((ModeData->ColorDepth + 7) 
/ 8);
   DEBUG ((EFI_D_INFO, "FrameBufferBase: 0x%x, FrameBufferSize: 0x%x\n", 
Mode->FrameBufferBase, Mode->FrameBufferSize));
 
+  FreePool (FrameBufDesc);
   return EFI_SUCCESS;
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to