mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 07:20:23 +01:00
vulkan/wsi: Fix resource leak in success path of wsi_queue_init()
It fixes leakage of pthread_condattr resource on wsi_queue_init()
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Mun Gwan-gyeong <elongbug@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
(cherry picked from commit 65ea559465)
This commit is contained in:
parent
eb62264769
commit
4cd5090578
1 changed files with 1 additions and 0 deletions
|
|
@ -65,6 +65,7 @@ wsi_queue_init(struct wsi_queue *queue, int length)
|
|||
if (ret)
|
||||
goto fail_cond;
|
||||
|
||||
pthread_condattr_destroy(&condattr);
|
||||
return 0;
|
||||
|
||||
fail_cond:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue