diff options
author | Gwan-gyeong Mun <elongbug@gmail.com> | 2016-11-25 23:39:04 +0900 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-12-14 19:03:10 +0000 |
commit | 4cd509057801162687cc86ee5ff8f5c856ce60f3 (patch) | |
tree | c5bb66027b5faf974fb3a482ca40b30677c7e540 /src | |
parent | eb62264769650f239dec910831bb98134af78ce2 (diff) | |
download | external_mesa3d-4cd509057801162687cc86ee5ff8f5c856ce60f3.zip external_mesa3d-4cd509057801162687cc86ee5ff8f5c856ce60f3.tar.gz external_mesa3d-4cd509057801162687cc86ee5ff8f5c856ce60f3.tar.bz2 |
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 65ea559465df527d8a2998380c7eb2554780a2ba)
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/wsi/wsi_common_queue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common_queue.h b/src/vulkan/wsi/wsi_common_queue.h index 0e72c8d..6d489cb 100644 --- a/src/vulkan/wsi/wsi_common_queue.h +++ b/src/vulkan/wsi/wsi_common_queue.h @@ -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: |