mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
ac: fix a memory leak in the error path of ac_build_type_name_for_intr
This commit is contained in:
parent
f6eca14f1b
commit
efe2d8c5f9
1 changed files with 1 additions and 0 deletions
|
|
@ -351,6 +351,7 @@ void ac_build_type_name_for_intr(LLVMTypeRef type, char *buf, unsigned bufsize)
|
||||||
char *type_name = LLVMPrintTypeToString(type);
|
char *type_name = LLVMPrintTypeToString(type);
|
||||||
fprintf(stderr, "Error building type name for: %s\n",
|
fprintf(stderr, "Error building type name for: %s\n",
|
||||||
type_name);
|
type_name);
|
||||||
|
LLVMDisposeMessage(type_name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
elem_type = LLVMGetElementType(type);
|
elem_type = LLVMGetElementType(type);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue