[Mesa-dev] [PATCH 2/4] u_vbuf: Fix leak

2018-08-30 Thread Ernestas Kulik
Reported by Coverity: data is heap-allocated, but only freed in the info->index_size != 0 branch. CID: 1438238 Signed-off-by: Ernestas Kulik --- src/gallium/auxiliary/util/u_vbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxili

[Mesa-dev] [PATCH 4/4] vc4: Fix leak

2018-08-30 Thread Ernestas Kulik
Reported by Coverity: in the case where there exist hardware and non-hardware queries, the code does not jump to err_free_query and leaks the query. CID: 1430194 Signed-off-by: Ernestas Kulik --- src/gallium/drivers/vc4/vc4_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[Mesa-dev] [PATCH 3/4] v3d: Fix leak

2018-08-30 Thread Ernestas Kulik
Reported by Coverity: in the case of unsupported modifier request, the code does not jump to the “fail” label to destroy the acquired resource. CID: 1435704 Signed-off-by: Ernestas Kulik --- src/gallium/drivers/v3d/v3d_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH 0/4] Coverity resource leak fixes

2018-08-30 Thread Ernestas Kulik
This patch series takes care of several reported resource leaks. Ernestas Kulik (4): glsl_to_tgsi: Fix potential leak u_vbuf: Fix leak v3d: Fix leak vc4: Fix leak src/gallium/auxiliary/util/u_vbuf.c| 1 + src/gallium/drivers/v3d/v3d_resource.c | 2 +- src/gallium/drivers/vc4

[Mesa-dev] [PATCH 1/4] glsl_to_tgsi: Fix potential leak

2018-08-30 Thread Ernestas Kulik
Reported by Coverity: arr_live_ranges is freed in a different branch than the one in which it was allocated. CID: 1438391 Signed-off-by: Ernestas Kulik --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa