Commit 4e8e4918 authored by Elie Tournier's avatar Elie Tournier Committed by Jakob Bornecrantz

vtest: Fix renderer memory leaks

Reviewed-by: Gurchetan Singh's avatarGurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: default avatarElie Tournier <elie.tournier@collabora.com>
Signed-off-by: Jakob Bornecrantz's avatarJakob Bornecrantz <jakob@collabora.com>
parent 49377fac
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment