diff options
author | Eric Anholt <[email protected]> | 2018-12-07 10:34:40 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-12-07 16:48:23 -0800 |
commit | f1d98204c34d36876e05e1d3f2242296ccec19e3 (patch) | |
tree | f50980527a1f635ba407ce852ab5cf242e96d013 /src | |
parent | 7f8d8b7d27868037a146f7fca04fef56b29bb85e (diff) |
v3d: Fix a leak of the disassembled instruction string during debug dumps.
Fixes: ade416d02369 ("broadcom: Add VC5 NIR compiler.")
Diffstat (limited to 'src')
-rw-r--r-- | src/broadcom/compiler/vir_to_qpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/broadcom/compiler/vir_to_qpu.c b/src/broadcom/compiler/vir_to_qpu.c index b5a7b841ef6..4baadce294c 100644 --- a/src/broadcom/compiler/vir_to_qpu.c +++ b/src/broadcom/compiler/vir_to_qpu.c @@ -364,6 +364,7 @@ v3d_dump_qpu(struct v3d_compile *c) for (int i = 0; i < c->qpu_inst_count; i++) { const char *str = v3d_qpu_disasm(c->devinfo, c->qpu_insts[i]); fprintf(stderr, "0x%016"PRIx64" %s\n", c->qpu_insts[i], str); + ralloc_free((void *)str); } fprintf(stderr, "\n"); } |