From aad14cf15ac3b9d2d42e9db24cc7b4fd53ed25b4 Mon Sep 17 00:00:00 2001 From: Louis-Francis Ratté-Boulianne Date: Mon, 12 Feb 2018 22:26:10 -0500 Subject: egl/x11: Fix leak in dri3_create_image_khr_pixmap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bp_reply wasn't properly free'd Signed-off-by: Louis-Francis Ratté-Boulianne Reviewed-by: Daniel Stone --- src/egl/drivers/dri2/platform_x11_dri3.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/egl/drivers') diff --git a/src/egl/drivers/dri2/platform_x11_dri3.c b/src/egl/drivers/dri2/platform_x11_dri3.c index 6e40eaa596a..6ead4d0a222 100644 --- a/src/egl/drivers/dri2/platform_x11_dri3.c +++ b/src/egl/drivers/dri2/platform_x11_dri3.c @@ -285,6 +285,7 @@ dri3_create_image_khr_pixmap(_EGLDisplay *disp, _EGLContext *ctx, dri2_img = malloc(sizeof *dri2_img); if (!dri2_img) { _eglError(EGL_BAD_ALLOC, "dri3_create_image_khr"); + free(bp_reply); return EGL_NO_IMAGE_KHR; } -- cgit v1.2.3