From: Marek Olšák Date: Wed, 24 Jul 2019 21:36:25 +0000 (-0400) Subject: ac: fix a memory leak in the error path of ac_build_type_name_for_intr X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=efe2d8c5f925a643d8de79cb8e6a4c4e00e71dd3;p=mesa.git ac: fix a memory leak in the error path of ac_build_type_name_for_intr --- 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);