mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 07:20:16 +01: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);
|
||||
fprintf(stderr, "Error building type name for: %s\n",
|
||||
type_name);
|
||||
LLVMDisposeMessage(type_name);
|
||||
return;
|
||||
}
|
||||
elem_type = LLVMGetElementType(type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue