diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-11-07 02:59:26 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-11-07 02:59:26 +0000 |
commit | d6b50e78d7c6b5fe09e3f3e913ef848a3115746e (patch) | |
tree | 276290115d0597ae7af1b1178624acc1b6b65017 /IntelFrameworkModulePkg | |
parent | 9402de91cf01205a13561c85c5b9eb1dc73bad93 (diff) | |
download | edk2-d6b50e78d7c6b5fe09e3f3e913ef848a3115746e.tar.gz edk2-d6b50e78d7c6b5fe09e3f3e913ef848a3115746e.tar.bz2 edk2-d6b50e78d7c6b5fe09e3f3e913ef848a3115746e.zip |
Fix a memory leak issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4276 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/SetupBrowserDxe/InputHandler.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/IntelFrameworkModulePkg/Universal/SetupBrowserDxe/InputHandler.c b/IntelFrameworkModulePkg/Universal/SetupBrowserDxe/InputHandler.c index 3c0a0785ab..b289bc0cc6 100644 --- a/IntelFrameworkModulePkg/Universal/SetupBrowserDxe/InputHandler.c +++ b/IntelFrameworkModulePkg/Universal/SetupBrowserDxe/InputHandler.c @@ -411,6 +411,7 @@ Error: WidthOfString = GetStringWidth (Packet->String);
ScreenSize = MAX (WidthOfString, GetStringWidth (gPressEnter)) / 2;
CreatePopUp (ScreenSize, 4, &NullCharacter, Packet->String, gPressEnter, &NullCharacter);
+ FreePool (Packet->String);
FreePool (Packet);
}
|