summaryrefslogtreecommitdiff
path: root/src/glx
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2015-04-17 15:13:35 +0200
committerEmil Velikov <emil.l.velikov@gmail.com>2015-07-11 20:48:53 +0100
commitf7008ebcdc4d936e8b2b1a317d870e907e4d369f (patch)
tree057c30862ad0d2e695f0429e470e6a92315ec85e /src/glx
parent5d219908ce045805647b85d1d302b58887e63c1b (diff)
dri3_open: don't leak the reply
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90073 Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/dri3_glx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index dfb0093395..96f13e6a07 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;
}