[Mesa-dev] [PATCH] loader: fix memory leak in loader_dri3_open
Boyan Ding
boyan.j.ding at gmail.com
Sat Jul 30 01:43:13 UTC 2016
2016-07-30 8:31 GMT+08:00 Jan Ziak <0xe2.0x9a.0x9b at gmail.com>:
> Found via "valgrind --leak-check=full glxgears".
>
> Signed-off-by: Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail.com>
> ---
> src/loader/loader_dri3_helper.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c
> index 896f225..b866d4e 100644
> --- a/src/loader/loader_dri3_helper.c
> +++ b/src/loader/loader_dri3_helper.c
> @@ -785,6 +795,7 @@ loader_dri3_open(xcb_connection_t *conn,
> }
>
> fd = xcb_dri3_open_reply_fds(conn, reply)[0];
> + free(reply);
> fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
>
> return fd;
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Acked-by: Boyan Ding <boyan.j.ding at gmail.com>
Cc: "12.0 11.2" <mesa-stable at lists.freedesktop.org>
More information about the mesa-dev
mailing list