diff options
author | Louis-Francis Ratté-Boulianne <[email protected]> | 2018-02-12 22:26:10 -0500 |
---|---|---|
committer | Daniel Stone <[email protected]> | 2018-02-14 11:52:06 +0000 |
commit | aad14cf15ac3b9d2d42e9db24cc7b4fd53ed25b4 (patch) | |
tree | 4f83f6b7cf1ddacefb6ba0e1413c1e36af8d370c /src | |
parent | cb9dbd6dec2952c894b183c860dd7520026d42ed (diff) |
egl/x11: Fix leak in dri3_create_image_khr_pixmap
bp_reply wasn't properly free'd
Signed-off-by: Louis-Francis Ratté-Boulianne <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/drivers/dri2/platform_x11_dri3.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |