u_vbuf: Fix leak
authorErnestas Kulik <ernestas.kulik@gmail.com>
Thu, 30 Aug 2018 16:02:45 +0000 (19:02 +0300)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 4 Sep 2018 18:01:43 +0000 (14:01 -0400)
commitea1e50cc166ae855f9fa91ca6a4f944123298e4e
tree55d83761b65a90538944a5a2bb74f2726dcac0a7
parent2e59b889033ac927f6ad1fb21a2f9f56648f6d31
u_vbuf: Fix leak

Reported by Coverity: data is heap-allocated, but only freed in the
info->index_size != 0 branch.

Signed-off-by: Ernestas Kulik <ernestas.kulik@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Cc: 18.2 <mesa-stable@lists.freedesktop.org>
src/gallium/auxiliary/util/u_vbuf.c