summaryrefslogtreecommitdiffstats
path: root/PerformancePkg/Dp_App/DpUtilities.c
diff options
context:
space:
mode:
Diffstat (limited to 'PerformancePkg/Dp_App/DpUtilities.c')
-rw-r--r--PerformancePkg/Dp_App/DpUtilities.c3
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;
}