Skip to content

Conversation

@FurTrader
Copy link

Repeated calls to esp_mqtt_client_set_uri were leaking 32 bytes of ram each time.

Solution is to free the memory used by password and username.

Description

Related

Testing


Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

repeated calls to esp_mqtt_client_set_uri were leaking 32 bytes of ram each time.
@github-actions github-actions bot changed the title fix memory leak in esp_mqtt_client_set_uri(): free memory before strdup() fix memory leak in esp_mqtt_client_set_uri(): free memory before strdup() (IDFGH-15563) Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants