[PATCH libdrm 3/4] modetest: call drmModeFreePlaneResources

Paulo Zanoni przanoni at gmail.com
Sat Apr 21 13:51:52 PDT 2012


From: Paulo Zanoni <paulo.r.zanoni at intel.com>

24 (16 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 7
   at 0x402994D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x4A25950: drmMalloc (xf86drm.c:147)
   by 0x4A2E26D: drmModeGetPlaneResources (xf86drmMode.c:951)
   by 0x4025FF: dump_planes (modetest.c:276)
   by 0x4052AF: main (modetest.c:1120)

Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 tests/modetest/modetest.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 64809da..6deed69 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -307,6 +307,7 @@ static void dump_planes(void)
 	}
 	printf("\n");
 
+	drmModeFreePlaneResources(plane_resources);
 	return;
 }
 
-- 
1.7.9.5



More information about the dri-devel mailing list