[igt-dev] [PATCH i-g-t 1/5] lib/aux: Plug memory leak in __igt_lsof_fds
Chris Wilson
chris at chris-wilson.co.uk
Thu Mar 7 12:08:40 UTC 2019
Quoting Petri Latvala (2019-03-07 11:24:23)
> Add a missing closedir call.
>
> Signed-off-by: Petri Latvala <petri.latvala at intel.com>
> ---
> lib/igt_aux.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/lib/igt_aux.c b/lib/igt_aux.c
> index ff98d91d..e5d41e32 100644
> --- a/lib/igt_aux.c
> +++ b/lib/igt_aux.c
> @@ -1419,6 +1419,8 @@ again:
> free(copy_fd_lnk);
> free(fd_lnk);
> }
> +
> + closedir(dp);
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
More information about the igt-dev
mailing list