dri3_open: don't leak the reply
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 17 Apr 2015 13:13:35 +0000 (15:13 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 11 Jul 2015 19:48:53 +0000 (20:48 +0100)
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>
src/glx/dri3_glx.c

index dfb0093395f75488947cd2ca5df70d91f8896573..96f13e6a07ba1c9b6046ca5eccaca3810156f429 100644 (file)
@@ -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;
 }