diff options
author | Emil Velikov <[email protected]> | 2017-08-03 14:34:53 +0100 |
---|---|---|
committer | Andres Gomez <[email protected]> | 2017-08-19 13:46:04 +0300 |
commit | 0cfd8879b17dcc9920956630f9889305fef85b78 (patch) | |
tree | 39542c047e71071710b7973034c0aac57adf9403 | |
parent | 1c3dcd3aa46c0fdbd64f6559e7ca54f01811ea1e (diff) |
egl/x11: don't leak xfixes_query in the error path
If we get a xfixes v1.x we'll error out, without freeing the
xfixes_query reply.
Cc: <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
(cherry picked from commit c961b679fe16fc98c3d04d611abc287f1bcc07b5)
-rw-r--r-- | src/egl/drivers/dri2/platform_x11.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index ea21355a1ba..4115842923a 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -647,6 +647,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); |