Fix memory leak from previous xml change
Memory leak occurring in PrinterSetMsg from Printer.c. Result from
corner case introduced with previous change to xml output for goal
configuration commands.
@@ -1259,8 +1259,12 @@ EFI_STATUS EFIAPI PrinterSetMsg(
if (EFI_ERROR(Status)) {
pPrintCtx->BufferedObjectLastError = Status;
}
- }
pPrintCtx->BufferedMsgCnt++;
+ }
+ else {
+ //here to handle the case where printer is unbuffered and XML == pPrintCtx->FormatType
+ FREE_POOL_SAFE(FullMsg);
+ }
ReturnCode = EFI_SUCCESS;
Finish:
return ReturnCode;
