From: Gwan-gyeong Mun Date: Fri, 25 Nov 2016 14:39:04 +0000 (+0900) Subject: vulkan/wsi: Fix resource leak in success path of wsi_queue_init() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65ea559465df527d8a2998380c7eb2554780a2ba;p=mesa.git 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" Signed-off-by: Mun Gwan-gyeong Reviewed-by: Emil Velikov Reviewed-by: Eduardo Lima Mitev --- diff --git a/src/vulkan/wsi/wsi_common_queue.h b/src/vulkan/wsi/wsi_common_queue.h index 0e72c8d2cc6..6d489cbf17e 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: