diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-21 08:55:05 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-21 10:38:30 -0700 |
commit | 1060c48d46e144874ccb465a7f9ed7c6e8799c42 (patch) | |
tree | c3dc2331075279324943080c1a26ead53eb4de58 /src/panfrost/pandecode | |
parent | 52ac7dc5d0aa07f36810770dfed516a08d490490 (diff) |
pan/decode: Don't leak FBD pointer
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/pandecode')
-rw-r--r-- | src/panfrost/pandecode/decode.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c index 86311268080..dee89889c2b 100644 --- a/src/panfrost/pandecode/decode.c +++ b/src/panfrost/pandecode/decode.c @@ -2580,9 +2580,11 @@ pandecode_fragment_job(const struct pandecode_mapped_memory *mem, if (fbd_dumped) pandecode_prop("framebuffer = framebuffer_%d_p | %s | 0x%X", job_no, fbd_type, extra_flags); - else - pandecode_prop("framebuffer = %s | %s | 0x%X", pointer_as_memory_reference(p), - fbd_type, extra_flags); + else { + char *a = pointer_as_memory_reference(p); + pandecode_prop("framebuffer = %s | %s | 0x%X", a, fbd_type, extra_flags); + free(a); + } pandecode_indent--; pandecode_log("};\n"); |