projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f8d8b7
)
v3d: Fix a leak of the disassembled instruction string during debug dumps.
author
Eric Anholt
<eric@anholt.net>
Fri, 7 Dec 2018 18:34:40 +0000
(10:34 -0800)
committer
Eric Anholt
<eric@anholt.net>
Sat, 8 Dec 2018 00:48:23 +0000
(16:48 -0800)
Fixes: ade416d02369 ("broadcom: Add VC5 NIR compiler.")
src/broadcom/compiler/vir_to_qpu.c
patch
|
blob
|
history
diff --git
a/src/broadcom/compiler/vir_to_qpu.c
b/src/broadcom/compiler/vir_to_qpu.c
index b5a7b841ef631a02079206ac6dc2aa71a4f98834..4baadce294c102f3c9d04f42a01d23e37c790766 100644
(file)
--- 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");
}