Explorar o código

apps: memory leak in draw_boxes()

Free the buffer allocated to draw boxes.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich Schuchardt %!s(int64=3) %!d(string=hai) anos
pai
achega
4fe83e1026
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      apps/bltgrid.c

+ 1 - 0
apps/bltgrid.c

@@ -84,6 +84,7 @@ draw_boxes(EFI_GRAPHICS_OUTPUT_PROTOCOL *gop)
 				  info->HorizontalResolution,
 				  info->VerticalResolution,
 				  0);
+		FreePool(PixelBuffer);
 		return;
 	}
 	Print(L"Never found the active video mode?\n");