From: Boris Brezillon Date: Tue, 13 Aug 2019 23:54:24 +0000 (+0200) Subject: panfrost: Free the instruction object in mir_remove_instruction() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ac49f135a104ea0420972403cbb53d94b1ab45f;p=mesa.git panfrost: Free the instruction object in mir_remove_instruction() To avoid memory leaks. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig --- 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*