diff options
-rw-r--r-- | src/gallium/drivers/vc4/vc4_register_allocate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_register_allocate.c b/src/gallium/drivers/vc4/vc4_register_allocate.c index 72e453a2809..247467b7a76 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; } |