diff options
author | Eric Anholt <[email protected]> | 2014-09-15 12:15:02 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-15 13:12:27 -0700 |
commit | f78ee1b280c82d525370cc378467276584acf0c8 (patch) | |
tree | 0d6062ab9d4daa81dab4679dcc723254b5c33f59 /src/gallium/drivers/vc4/vc4_qir.c | |
parent | 50292d76c5aa59be06468e3c2855dd7c1d837ecb (diff) |
vc4: Fix memory leaks of some vc4_compile contents.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c index ef8a4e54d24..60455d50f86 100644 --- a/src/gallium/drivers/vc4/vc4_qir.c +++ b/src/gallium/drivers/vc4/vc4_qir.c @@ -23,6 +23,7 @@ #include "util/u_memory.h" #include "util/u_simple_list.h" +#include "util/ralloc.h" #include "vc4_qir.h" #include "vc4_qpu.h" @@ -274,7 +275,7 @@ qir_reg_equals(struct qreg a, struct qreg b) struct vc4_compile * qir_compile_init(void) { - struct vc4_compile *c = CALLOC_STRUCT(vc4_compile); + struct vc4_compile *c = rzalloc(NULL, struct vc4_compile); make_empty_list(&c->instructions); @@ -284,7 +285,7 @@ qir_compile_init(void) void qir_compile_destroy(struct vc4_compile *c) { - free(c); + ralloc_free(c); } const char * |