From 4e8e49184560479d5f6e87c312d19376ef3b2e7a Mon Sep 17 00:00:00 2001 From: Elie Tournier Date: Fri, 23 Nov 2018 15:24:22 +0000 Subject: [PATCH] vtest: Fix renderer memory leaks Reviewed-by: Gurchetan Singh Signed-off-by: Elie Tournier Signed-off-by: Jakob Bornecrantz --- vtest/vtest_renderer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vtest/vtest_renderer.c b/vtest/vtest_renderer.c index a061f95..2065f78 100644 --- a/vtest/vtest_renderer.c +++ b/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; }