# wasm-linker: Fix memory leak · gitcafe/zig

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

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

Visibility: public

Requested revision: 321a1642693b74481e12cae8d7be089c6ef45cc1

Requested commit: 321a1642693b74481e12cae8d7be089c6ef45cc1

Commit: 321a1642693b74481e12cae8d7be089c6ef45cc1

Tree: 1afb9feb766d9d73480454b96ca2084c0c0f06a3

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: Fix memory leak

This fixes a memory leak when an object file contains one or more element sections which
then contains one or more function indexes. This commit ensures the slice of index functions
for each element section will be freed upon resource deallocation also.

```

## Parents

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

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