diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-09 03:22:42 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-09 03:22:42 +0000 |
commit | 8835954602834c41db448064a7205ac0b8b66189 (patch) | |
tree | 7323c831214fa68d97c9d843a91bc759f206de9c /PerformancePkg/Dp_App/DpUtilities.c | |
parent | 224beee0fa29b9b10cda6c1d25307371368a1040 (diff) | |
download | edk2-platforms-8835954602834c41db448064a7205ac0b8b66189.tar.xz |
Move some define code to the uni file. Also fixed some memory leak.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11015 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'PerformancePkg/Dp_App/DpUtilities.c')
-rw-r--r-- | PerformancePkg/Dp_App/DpUtilities.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PerformancePkg/Dp_App/DpUtilities.c b/PerformancePkg/Dp_App/DpUtilities.c index 1c40e83950..48e2952aa7 100644 --- a/PerformancePkg/Dp_App/DpUtilities.c +++ b/PerformancePkg/Dp_App/DpUtilities.c @@ -206,6 +206,7 @@ GetNameFromHandle ( );
if (EFI_ERROR (Status)) {
StrCpy (mGaugeString, StringPtr);
+ FreePool (StringPtr);
return ;
}
@@ -225,6 +226,7 @@ GetNameFromHandle ( } else {
StrCpy (mGaugeString, StringPtr);
}
+ FreePool (StringPtr);
return ;
}
@@ -289,6 +291,7 @@ PrintToken ( if (Return > 0 && gST->ConOut != NULL) {
gST->ConOut->OutputString (gST->ConOut, mPrintTokenBuffer);
}
+ FreePool (StringPtr);
return Return;
}
|