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

memory leak when sending large strings #9

Open
arades79 opened this issue Feb 5, 2018 · 0 comments
Open

memory leak when sending large strings #9

arades79 opened this issue Feb 5, 2018 · 0 comments

Comments

@arades79
Copy link
Contributor

arades79 commented Feb 5, 2018

Hey,

While working on a project that streams large JSON packets of sensor data, I noticed memory usage increasing slowly over time.

I ran through valgrind and it wouldn't find the error, since it wasn't a heap memory leak.

Eventually I found that passing in a c string, and changing all the send related functions to meet this fixed the issue.

I've submitted a PR with the changes I've made for you to look over.

Thanks

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