wsi/x11: fix memleak in wsi_x11_connection_create()

Fixes: bbdf7e45b1 ("wsi/x11: Hook up KHR_incremental_present")
Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18177>
(cherry picked from commit 20fba14f2c)
This commit is contained in:
Eric Engestrom 2022-08-22 09:57:20 +01:00 committed by Dylan Baker
parent e8112df5fb
commit 8da364d8fa
2 changed files with 2 additions and 1 deletions

View file

@ -12379,7 +12379,7 @@
"description": "wsi/x11: fix memleak in wsi_x11_connection_create()",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "bbdf7e45b15f6345c5e509827770aec8a8bdfe7c"
},

View file

@ -331,6 +331,7 @@ wsi_x11_connection_create(struct wsi_device *wsi_dev,
free(randr_reply);
free(amd_reply);
free(nv_reply);
free(xfixes_reply);
if (wants_shm)
free(shm_reply);