summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-07-24 17:36:25 -0400
committerMarek Olšák <[email protected]>2019-07-30 22:06:23 -0400
commitefe2d8c5f925a643d8de79cb8e6a4c4e00e71dd3 (patch)
tree70d76614d152e4c8980e1baeff313c0823a8df75 /src/amd
parentf6eca14f1b0b6e964821e59fd10f4dc00596a18c (diff)
ac: fix a memory leak in the error path of ac_build_type_name_for_intr
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_llvm_build.c1
1 files changed, 1 insertions, 0 deletions
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);