# LLVM: fix memory leak of debug type names · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/fb4ad37e0bd07513a0a56afb45e95c68036b1eea)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: fb4ad37e0bd07513a0a56afb45e95c68036b1eea

Requested commit: fb4ad37e0bd07513a0a56afb45e95c68036b1eea

Commit: fb4ad37e0bd07513a0a56afb45e95c68036b1eea

Tree: a735a6104ec10aae6417b7e11d4b893debb06776

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
LLVM: fix memory leak of debug type names

This required adjusting `Type.nameAlloc` to be used with a
general-purpose allocator and added `Type.nameAllocArena` for the arena
use case (avoids allocation sometimes).

```

## Parents

- [874b51d8d4d80f224e979adba11526a5dcec61da](https://git.cafe/gitcafe/zig/commit/874b51d8d4d80f224e979adba11526a5dcec61da?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/fb4ad37e0bd07513a0a56afb45e95c68036b1eea?format=markdown)
