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

Kamil Konieczny kamil.konieczny at linux.intel.com
Wed Apr 3 17:28:27 UTC 2024


Hi Lucas,
On 2024-04-02 at 15:17:12 -0700, Lucas De Marchi wrote:
> So it's easily checked with valgrind if we there's something leaking.

s/we there's something/memory is/

With this
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

> 
> 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