Преглед изворни кода

apps: memory leak in draw_boxes()

Free the buffer allocated to draw boxes.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich Schuchardt пре 3 година
родитељ
комит
4fe83e1026
1 измењених фајлова са 1 додато и 0 уклоњено
  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");