Module: Mesa Branch: master Commit: fd32868590c7cbc5c6c2b3d59ff66694de3864b8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd32868590c7cbc5c6c2b3d59ff66694de3864b8
Author: Jan Ziak <[email protected]> Date: Sat Jul 30 02:31:10 2016 +0200 loader: fix memory leak in loader_dri3_open Found via "valgrind --leak-check=full glxgears". Signed-off-by: Jan Ziak (http://atom-symbol.net) <[email protected]> Acked-by: Boyan Ding <[email protected]> Cc: "12.0 11.2" <[email protected]> Reviewed-by: Eric Anholt <[email protected]> --- 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..67d0c2c 100644 --- a/src/loader/loader_dri3_helper.c +++ b/src/loader/loader_dri3_helper.c @@ -785,6 +785,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-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
