From: Louis-Francis Ratté-Boulianne Date: Tue, 13 Feb 2018 03:26:10 +0000 (-0500) Subject: egl/x11: Fix leak in dri3_create_image_khr_pixmap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aad14cf15ac3b9d2d42e9db24cc7b4fd53ed25b4;p=mesa.git egl/x11: Fix leak in dri3_create_image_khr_pixmap bp_reply wasn't properly free'd Signed-off-by: Louis-Francis Ratté-Boulianne Reviewed-by: Daniel Stone --- 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; }