vtest: Fix renderer memory leaks

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Elie Tournier 6 years ago committed by Jakob Bornecrantz
parent 49377facce
commit 4e8e491845
  1. 1
      vtest/vtest_renderer.c

@ -448,6 +448,7 @@ int vtest_create_resource2(UNUSED uint32_t length_dw)
iovec->iov_len = res_create_buf[VCMD_RES_CREATE2_DATA_SIZE];
iovec->iov_base = calloc(1, iovec->iov_len);
if (!iovec->iov_base) {
FREE(iovec);
return -ENOMEM;
}

Loading…
Cancel
Save