/[packages]/cauldron/mesa/current/SOURCES/0007-v3d-Fix-a-leak-of-the-disassembled-instruction-strin.patch
ViewVC logotype

Contents of /cauldron/mesa/current/SOURCES/0007-v3d-Fix-a-leak-of-the-disassembled-instruction-strin.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1355920 - (show annotations) (download)
Sun Jan 13 14:22:00 2019 UTC (5 years, 2 months ago) by tmb
File size: 1022 byte(s)
add current fixes from upstream staging/18.3 branch
1 From d1f14bade80eade92fb3167e2bfd5a9f819f6067 Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Fri, 7 Dec 2018 10:34:40 -0800
4 Subject: [PATCH 07/78] v3d: Fix a leak of the disassembled instruction string
5 during debug dumps.
6
7 Fixes: ade416d02369 ("broadcom: Add VC5 NIR compiler.")
8 (cherry picked from commit f1d98204c34d36876e05e1d3f2242296ccec19e3)
9 ---
10 src/broadcom/compiler/vir_to_qpu.c | 1 +
11 1 file changed, 1 insertion(+)
12
13 diff --git a/src/broadcom/compiler/vir_to_qpu.c b/src/broadcom/compiler/vir_to_qpu.c
14 index b5a7b841ef..4baadce294 100644
15 --- a/src/broadcom/compiler/vir_to_qpu.c
16 +++ b/src/broadcom/compiler/vir_to_qpu.c
17 @@ -364,6 +364,7 @@ v3d_dump_qpu(struct v3d_compile *c)
18 for (int i = 0; i < c->qpu_inst_count; i++) {
19 const char *str = v3d_qpu_disasm(c->devinfo, c->qpu_insts[i]);
20 fprintf(stderr, "0x%016"PRIx64" %s\n", c->qpu_insts[i], str);
21 + ralloc_free((void *)str);
22 }
23 fprintf(stderr, "\n");
24 }
25 --
26 2.20.1
27

  ViewVC Help
Powered by ViewVC 1.1.30