-
Notifications
You must be signed in to change notification settings - Fork 278
Open
Labels
Description
Which middleware has the bug?
@hono/zod-openapi
What version of the middleware?
1.2.0
What version of Hono are you using?
4.11.4
What runtime/platform is your app running on? (with version if possible)
bun
What steps can reproduce the bug?
Every time I go to the endpoint that generates the OpenAPI JSON file, it stacks items in the memory that are never garbage collected.
Clone the repo:
https://github.com/thibaultleouay/hono-openapi-memory-leak
Run the k6 script once, generate the heap dump by going to localhost:3000. Run the k6 script another time, generate the heap dump by going to localhost:3000.
I can see a lot of new functions like this that are never free from memory.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
mxkaske and bodadotsh