# zig_llvm.cpp uses new\(std::nothrow\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 02f70cda8a9fb038705e03b6e65625119bdef4e7

Requested commit: 02f70cda8a9fb038705e03b6e65625119bdef4e7

Commit: 02f70cda8a9fb038705e03b6e65625119bdef4e7

Tree: f604b9c3d64b807298eaa36b42d38cc12194c076

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
zig_llvm.cpp uses new(std::nothrow)

This fixes a mismatched malloc/delete because
we were allocating with malloc and then llvm was
freeing with delete.

```

## Parents

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

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