From efe2d8c5f925a643d8de79cb8e6a4c4e00e71dd3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 24 Jul 2019 17:36:25 -0400 Subject: [PATCH] ac: fix a memory leak in the error path of ac_build_type_name_for_intr --- src/amd/common/ac_llvm_build.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index d916fea6771..a666ecd1ea1 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -351,6 +351,7 @@ void ac_build_type_name_for_intr(LLVMTypeRef type, char *buf, unsigned bufsize) char *type_name = LLVMPrintTypeToString(type); fprintf(stderr, "Error building type name for: %s\n", type_name); + LLVMDisposeMessage(type_name); return; } elem_type = LLVMGetElementType(type); -- 2.30.2