diff options
author | Eric Engestrom <[email protected]> | 2016-07-12 23:29:34 +0100 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-07-12 15:47:12 -0700 |
commit | e8959ba7afbda7a23805072efc15c6f11449103e (patch) | |
tree | 9f3a89b3aff8e5b84f961ef5e76bf80270df63e2 /src/gallium/drivers/vc4/vc4_resource.c | |
parent | c65a00eaff85160dd556856c8c2eecf3aabdc4d5 (diff) |
vc4: fix memory leak
The allocation has succeeded by that point, so it needs to be freed.
CovID: 1358929
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_resource.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |