[Mesa-dev] [PATCH 1/2] dri3_open: don't leak the reply
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Apr 17 06:13:35 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=90073
Signed-off-by: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
---
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
More information about the mesa-dev
mailing list