From: Eric Engestrom Date: Tue, 12 Jul 2016 22:29:34 +0000 (+0100) Subject: vc4: fix memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e8959ba7afbda7a23805072efc15c6f11449103e;p=mesa.git 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 --- 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;