# agents: leak an overlay's display name once, not per metadata\(\) call · lucenx/signaltty

[View on GitCafe](https://git.cafe/lucenx/signaltty/commit/a31056d094ad1d57e31bf8bc4cbaa9f10bb78830)

Repository: [lucenx/signaltty](https://git.cafe/lucenx/signaltty)

Visibility: public

Requested revision: a31056d094ad1d57e31bf8bc4cbaa9f10bb78830

Requested commit: a31056d094ad1d57e31bf8bc4cbaa9f10bb78830

Commit: a31056d094ad1d57e31bf8bc4cbaa9f10bb78830

Tree: 6b3e365331882225d01d6b1d582f7ff9c2b9ddf4

Author: Lucenx9

Committer: Lucenx9

## Message

```
agents: leak an overlay's display name once, not per metadata() call

OverlayAdapter::metadata() leaked a new copy of the manifest display_name on
every call, and the hook router calls it on every hook event, so a manifest
with display_name grew memory for the life of the server. Leak it once when
the overlay is built, as the helper's comment already promised.

```

## Parents

- [519e236f35f8d1ab914bd2a4043c910ac5e6b473](https://git.cafe/lucenx/signaltty/commit/519e236f35f8d1ab914bd2a4043c910ac5e6b473?format=markdown)

[Source at this commit](https://git.cafe/lucenx/signaltty/tree/a31056d094ad1d57e31bf8bc4cbaa9f10bb78830?format=markdown)
