[Mesa-dev] [PATCH] vc4: Fix resource leak
Mun Gwan-gyeong
elongbug at gmail.com
Wed Nov 16 19:17:39 UTC 2016
Add missed free()
CID 1394322
Signed-off-by: Mun Gwan-gyeong <elongbug at gmail.com>
---
src/gallium/drivers/vc4/vc4_register_allocate.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/vc4/vc4_register_allocate.c b/src/gallium/drivers/vc4/vc4_register_allocate.c
index 72e453a..247467b 100644
--- a/src/gallium/drivers/vc4/vc4_register_allocate.c
+++ b/src/gallium/drivers/vc4/vc4_register_allocate.c
@@ -354,6 +354,7 @@ vc4_register_allocate(struct vc4_context *vc4, struct vc4_compile *c)
*/
if (c->fs_threaded) {
c->failed = true;
+ free(temp_registers);
return NULL;
}
@@ -383,6 +384,7 @@ vc4_register_allocate(struct vc4_context *vc4, struct vc4_compile *c)
}
c->failed = true;
+ free(temp_registers);
return NULL;
}
--
2.10.2
More information about the mesa-dev
mailing list