vc4: Fix leak in HW queries error path
authorErnestas Kulik <ernestas.kulik@gmail.com>
Thu, 30 Aug 2018 16:02:47 +0000 (19:02 +0300)
committerEric Anholt <eric@anholt.net>
Wed, 30 Jan 2019 00:14:13 +0000 (16:14 -0800)
commitf6e49d5ad0fde19a074644491475470d684dd721
tree40634a83df70dd5465311c42c741a33f90c85b44
parent6053c7bb436a4a8cdb63e6015b4b5d87c6723081
vc4: Fix leak in HW queries error path

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 <ernestas.kulik@gmail.com>
Fixes: 9ea90ffb98fb ("broadcom/vc4: Add support for HW perfmon")
src/gallium/drivers/vc4/vc4_query.c