summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2024-04-02 15:17:12 -0700
committerLucas De Marchi <lucas.demarchi@intel.com>2024-04-04 18:58:57 -0500
commit75e4b1d5c84822a61fc122eff515e3490c159e73 (patch)
tree0c326ef13a950fb4636f3fab71d7b46ff563c084 /tools
parentef28ce7911c03782023dbe9b0713c49cacad5f0a (diff)
gputop: Free clients on exit
So it's easily checked with valgrind if there are memory leaks. Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Reviewed-by: Tvrtko Ursulin <tursulin@ursulin.net> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/gputop.c2
1 files changed, 2 insertions, 0 deletions
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;
}