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:
parent
5d219908ce
commit
f7008ebcdc
|
@ -1679,6 +1679,8 @@ dri3_open(Display *dpy,
|
||||||
fd = xcb_dri3_open_reply_fds(c, reply)[0];
|
fd = xcb_dri3_open_reply_fds(c, reply)[0];
|
||||||
fcntl(fd, F_SETFD, FD_CLOEXEC);
|
fcntl(fd, F_SETFD, FD_CLOEXEC);
|
||||||
|
|
||||||
|
free(reply);
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue