From a3d75b0c6b8ab71ad098445bc2995925bfaf950e Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 17 Apr 2015 14:40:07 +0200 Subject: [PATCH 1/2] dri3_open: don't leak the reply https://bugs.freedesktop.org/show_bug.cgi?id=90073 --- src/glx/dri3_glx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 1ddc723..7a853c6 100644 --- a/src/glx/dri3_glx.c +++ b/src/glx/dri3_glx.c @@ -1679,6 +1679,8 @@ dri3_open(Display *dpy, fd = xcb_dri3_open_reply_fds(c, reply)[0]; fcntl(fd, F_SETFD, FD_CLOEXEC); + free(reply); + return fd; } -- 2.1.0