[Mesa-dev] [PATCH] vc4: Fix resource leak
Add missed free() CID 1394322 Signed-off-by: Mun Gwan-gyeong --- 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 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH] vc4: Fix resource leak
Mun Gwan-gyeong writes: > Add missed free() > > CID 1394322 > > Signed-off-by: Mun Gwan-gyeong Pushed this yesterday. Thanks! (I made a little change to the commit message summary, as as time goes on a project will end up with a lot of commits titled "vc4: Fix resource leak") signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH] vc4: Fix resource leak
Thanks for reviewing and pushing! 2016-11-18 11:55 GMT+09:00 Eric Anholt : > Mun Gwan-gyeong writes: > >> Add missed free() >> >> CID 1394322 >> >> Signed-off-by: Mun Gwan-gyeong > > Pushed this yesterday. Thanks! > > (I made a little change to the commit message summary, as as time goes > on a project will end up with a lot of commits titled "vc4: Fix resource > leak") -- Mun, Gwan-gyeong ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev