Mesa (master): dri3_open: don't leak the reply
Emil Velikov
evelikov at kemper.freedesktop.org
Sat Jul 11 19:46:13 UTC 2015
Module: Mesa
Branch: master
Commit: f7008ebcdc4d936e8b2b1a317d870e907e4d369f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f7008ebcdc4d936e8b2b1a317d870e907e4d369f
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Fri Apr 17 15:13:35 2015 +0200
dri3_open: don't leak the reply
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90073
Signed-off-by: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
---
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 dfb0093..96f13e6 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;
}
More information about the mesa-commit
mailing list