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

use shared ptr instead of raw pointer #121

Closed
jrse opened this issue Feb 7, 2018 · 1 comment
Closed

use shared ptr instead of raw pointer #121

jrse opened this issue Feb 7, 2018 · 1 comment

Comments

@jrse
Copy link
Contributor

jrse commented Feb 7, 2018

use shared pointer instead of normal pointer in rbox_storage and dictionary

@jrse jrse changed the title use shared ptr instead of normal pointer use shared ptr instead of raw pointer Dec 14, 2018
@jrse
Copy link
Contributor Author

jrse commented Dec 18, 2018

shared_ptr seem to collide with dovecot's memory managment, in the way that it is not a given that the memory is always freed. So using them would most likely lead to memory leaks and kill of the benefits of using them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant