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

Fix mgos_homeassistant_barometer_fromjson() leak #7

Merged
merged 1 commit into from
Sep 4, 2021

Conversation

QRPp
Copy link
Collaborator

@QRPp QRPp commented Sep 4, 2021

(#1) When bailing out between allocation of a struct mgos_homeassistant_barometer
and creation of a struct mgos_homeassistant_object, the former wasn't free()d.

(*) Also drop a repeated pointer check in barometer_pre_remove_cb().

When bailing out between allocation of struct mgos_homeassistant_barometer and
creation of a struct mgos_homeassistant_object, the former wasn't free()d.

(*) Also drop a repeated pointer check in barometer_pre_remove_cb().
@QRPp QRPp merged commit 43bc847 into mongoose-os-libs:master Sep 4, 2021
@QRPp QRPp deleted the barometer_fromjson-mem-leak branch September 4, 2021 21:21
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

Successfully merging this pull request may close these issues.

1 participant