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

Free URI with destruction of client to avoid mem leaks #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MartinNowack
Copy link
Contributor

No description provided.

@jeroen
Copy link
Owner

jeroen commented Oct 23, 2018

This seems a bit overkill. Can't we just free the uri after creating the client? Or can we lookup the uri object in the finalizer for the client object?

@MartinNowack
Copy link
Contributor Author

@jeroen To be honest, I don't know. According to http://mongoc.org/libmongoc/current/tutorial.html, if it happens, it happens at the end. According to mongoc internals, it could be delated later.

Sure the lookup is possible, now it's just independent.

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.

2 participants