[PATCH i-g-t 4/8] gputop: Free clients on exit

Lucas De Marchi lucas.demarchi at intel.com
Tue Apr 2 22:17:12 UTC 2024


So it's easily checked with valgrind if we there's something leaking.

Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
 tools/gputop.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/gputop.c b/tools/gputop.c
index 71e28f43e..b13044b50 100644
--- a/tools/gputop.c
+++ b/tools/gputop.c
@@ -293,5 +293,7 @@ int main(int argc, char **argv)
 		usleep(period_us);
 	}
 
+	igt_drm_clients_free(clients);
+
 	return 0;
 }
-- 
2.43.0



More information about the igt-dev mailing list