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 #5

Closed
vincent-richard opened this issue Apr 5, 2012 · 0 comments
Closed

Memory leak #5

vincent-richard opened this issue Apr 5, 2012 · 0 comments
Labels

Comments

@vincent-richard
Copy link
Member

I have the library connecting/disconnecting to multiple stores via IMAP in a continuous loop and every time 4 bytes are added to memory. Here is some code you can use to replicate the issue; it's nothing more than a basic connection and disconnection in a simple loop. Either this is a bug or I'm overlooking some form of destructor that the examples and documentation neglect to mention.

vmime::ref <vmime::net::store> st;
vmime::ref <vmime::net::folder> f;
vmime::platform::setHandler<vmime::platforms::posix::posixHandler>();
static vmime::ref <vmime::net::session> g_session = vmime::create <vmime::net::session>();

while(1){
    stringstream url_string;
    url_string<<"imap://blah:blah";
    cout << url_string.str() << endl;
    vmime::utility::url url(url_string.str());

    st = g_session->getStore(url);
    st->connect();
    st->disconnect();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant