Mesa (master): vulkan/wsi: Fix resource leak in success path of wsi_queue_init()
Emil Velikov
evelikov at kemper.freedesktop.org
Mon Nov 28 21:14:16 UTC 2016
Module: Mesa
Branch: master
Commit: 65ea559465df527d8a2998380c7eb2554780a2ba
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=65ea559465df527d8a2998380c7eb2554780a2ba
Author: Gwan-gyeong Mun <elongbug at gmail.com>
Date: Fri Nov 25 23:39:04 2016 +0900
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 at lists.freedesktop.org>
Signed-off-by: Mun Gwan-gyeong <elongbug at gmail.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Eduardo Lima Mitev <elima at igalia.com>
---
src/vulkan/wsi/wsi_common_queue.h | 1 +
1 file changed, 1 insertion(+)
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:
More information about the mesa-commit
mailing list