From e8959ba7afbda7a23805072efc15c6f11449103e Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 12 Jul 2016 23:29:34 +0100 Subject: vc4: fix memory leak The allocation has succeeded by that point, so it needs to be freed. CovID: 1358929 Signed-off-by: Eric Engestrom Reviewed-by: Eric Anholt --- src/gallium/drivers/vc4/vc4_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index aabe59352f6..a07fa3d9979 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -552,7 +552,7 @@ vc4_resource_from_handle(struct pipe_screen *pscreen, handle->stride, expected_stride); } - return NULL; + goto fail; } rsc->tiled = false; -- cgit v1.2.3