summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-08-14 01:54:24 +0200
committerBoris Brezillon <[email protected]>2019-08-27 16:50:52 +0200
commit3ac49f135a104ea0420972403cbb53d94b1ab45f (patch)
tree6f4b53d33c5633169b3b862c50ef1e87ecbd3a58
parent239f7f1c0ad7ee8985e62e8d7f84f6834d14f990 (diff)
panfrost: Free the instruction object in mir_remove_instruction()
To avoid memory leaks. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r--src/panfrost/midgard/compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index 099d108142b..f9ba31b5959 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -315,6 +315,7 @@ static inline void
mir_remove_instruction(struct midgard_instruction *ins)
{
list_del(&ins->link);
+ free(ins);
}
static inline midgard_instruction*