Closed MacWyznawca closed 3 years ago
@MacWyznawca , thanks for this fix. I have left a minor comment. Once that is resolved, we can merge this.
@MacWyznawca , can you make a couple of minor changes?
Bugfix: Memory leak in hap_send_notification
Fixed a memory leak in hap_send_notification (hap_char_update_val)
Normally we import the PR into our internal repo, merge it and then push to GitHub. I could have made these changes myself, but then that would generate a new commit id and not reflect cleanly against this PR :)
Thanks @shahpiyushv ! I think it will be faster if they did it themselves. After this patch, my accessories are working for 10 days without any error or reboot;) Before, after 15-40 minutes I was running out of RAM.
Merged in this commit. Thank you for the contribution @MacWyznawca .
Memory leak in hap_send_notification (hap_char_update_val)