diff options
author | Gwan-gyeong Mun <[email protected]> | 2016-11-25 23:39:04 +0900 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-11-28 21:11:25 +0000 |
commit | 65ea559465df527d8a2998380c7eb2554780a2ba (patch) | |
tree | 161351c686a9ded940e4c02bdaec1b8753beca1b /src/vulkan | |
parent | b178652b41410483dcd82aba495eab6bc892ab15 (diff) |
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" <[email protected]>
Signed-off-by: Mun Gwan-gyeong <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/vulkan')
-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 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: |