public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/4] gem_exec_gttfill: Plug memory leak
@ 2019-03-13 12:06 Petri Latvala
  2019-03-13 12:06 ` [igt-dev] [PATCH i-g-t 2/4] gem_exec_fence: Really loop through all engines Petri Latvala
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Petri Latvala @ 2019-03-13 12:06 UTC (permalink / raw)
  To: igt-dev; +Cc: Petri Latvala

by freeing batches in fillgtt()

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
---
 tests/i915/gem_exec_gttfill.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/i915/gem_exec_gttfill.c b/tests/i915/gem_exec_gttfill.c
index efd612bb..c5627c80 100644
--- a/tests/i915/gem_exec_gttfill.c
+++ b/tests/i915/gem_exec_gttfill.c
@@ -196,6 +196,7 @@ static void fillgtt(int fd, unsigned ring, int timeout)
 		munmap(batches[i].ptr, BATCH_SIZE);
 		gem_close(fd, batches[i].handle);
 	}
+	free(batches);
 
 	shared[nengine] = 0;
 	for (unsigned i = 0; i < nengine; i++)
-- 
2.19.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-03-13 17:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-13 12:06 [igt-dev] [PATCH i-g-t 1/4] gem_exec_gttfill: Plug memory leak Petri Latvala
2019-03-13 12:06 ` [igt-dev] [PATCH i-g-t 2/4] gem_exec_fence: Really loop through all engines Petri Latvala
2019-03-13 12:33   ` Chris Wilson
2019-03-13 12:06 ` [igt-dev] [PATCH i-g-t 3/4] gem_exec_latency: Initialize variance to zero Petri Latvala
2019-03-13 12:33   ` Chris Wilson
2019-03-13 12:34     ` Chris Wilson
2019-03-13 12:06 ` [igt-dev] [PATCH i-g-t 4/4] gem_exec_lut_handle: Initialize c Petri Latvala
2019-03-13 12:12   ` Chris Wilson
2019-03-13 12:36   ` Chris Wilson
2019-03-13 12:32 ` [igt-dev] [PATCH i-g-t 1/4] gem_exec_gttfill: Plug memory leak Chris Wilson
2019-03-13 13:47 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] " Patchwork
2019-03-13 17:26 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox