From 3ac49f135a104ea0420972403cbb53d94b1ab45f Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Wed, 14 Aug 2019 01:54:24 +0200 Subject: panfrost: Free the instruction object in mir_remove_instruction() To avoid memory leaks. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig --- src/panfrost/midgard/compiler.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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* -- cgit v1.2.3