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
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
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
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
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