[Mesa-dev] [PATCH 04/12] egl/x11: don't leak xfixes_query in the error path
Emil Velikov
emil.l.velikov at gmail.com
Thu Aug 3 18:29:30 UTC 2017
From: Emil Velikov <emil.velikov at collabora.com>
If we get a xfixes v1.x we'll error out, without freeing the
xfixes_query reply.
Cc: <mesa-stable at lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
I don't feel that strongly about having this in stable, but meh.
---
src/egl/drivers/dri2/platform_x11.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c
index 9d30903659d..eb5ba6088ad 100644
--- a/src/egl/drivers/dri2/platform_x11.c
+++ b/src/egl/drivers/dri2/platform_x11.c
@@ -646,6 +646,7 @@ dri2_x11_connect(struct dri2_egl_display *dri2_dpy)
error != NULL || xfixes_query->major_version < 2) {
_eglLog(_EGL_WARNING, "DRI2: failed to query xfixes version");
free(error);
+ free(xfixes_query);
return EGL_FALSE;
}
free(xfixes_query);
--
2.13.3
More information about the mesa-dev
mailing list