From: Guillaume Desmottes Date: Fri, 17 Apr 2015 13:13:35 +0000 (+0200) Subject: dri3_open: don't leak the reply X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7008ebcdc4d936e8b2b1a317d870e907e4d369f;p=mesa.git dri3_open: don't leak the reply Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90073 Signed-off-by: Guillaume Desmottes Reviewed-by: Emil Velikov --- diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index dfb0093395f..96f13e6a07b 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; }