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>
This commit is contained in:
Guillaume Desmottes 2015-04-17 15:13:35 +02:00 committed by Emil Velikov
parent 5d219908ce
commit f7008ebcdc
1 changed files with 2 additions and 0 deletions

View 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;
}