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

SMTPConnection::authenticate Memory Leak #217

Closed
rhergenreder opened this issue Jun 20, 2019 · 1 comment
Closed

SMTPConnection::authenticate Memory Leak #217

rhergenreder opened this issue Jun 20, 2019 · 1 comment

Comments

@rhergenreder
Copy link

Just a small issue which came up using Valgrind:

==30741==    at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30741==    by 0x6D99BE: vmime::net::smtp::SMTPConnection::authenticate() (SMTPConnection.cpp:344)
==30741==    by 0x6D8762: vmime::net::smtp::SMTPConnection::connect() (SMTPConnection.cpp:200)
==30741==    by 0x65F8BA: vmime::net::smtp::SMTPTransport::connect() (SMTPTransport.cpp:103)

SMTPConnection.cpp:344:
auto encoder = new vmime::utility::encoder::b64Encoder();

Removing the new operator and make it a non-pointer should fix the problem.

vincent-richard added a commit that referenced this issue Jul 2, 2019
@vincent-richard
Copy link
Member

Fixed, 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

2 participants