Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memleak in rest api #1454

Closed
OdyWayne opened this issue Sep 21, 2023 · 1 comment
Closed

memleak in rest api #1454

OdyWayne opened this issue Sep 21, 2023 · 1 comment

Comments

@OdyWayne
Copy link
Collaborator

Describe the bug
There will be memleaks using certain rest apis.

To Reproduce
Start NanoMQ with http server feature on; use mosquitto_sub to sub a topic; use rest api like "GET /api/v4/clients"; then you will get a memleak.
There are other rest apia can also cause memleak like "GET /api/v4/subscriptions/{clientid}", "GET /api/v4/subscriptions", "GET /api/v4/clients/username/{username}", "GET /api/v4/clients/{clientid}", "GET /api/v4/prometheus".

** Environment Details **

  • NanoMQ version: latest main branch
  • Operating system and version: Ubuntu 22.04
@OdyWayne
Copy link
Collaborator Author

fixed here --> #1455

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant