-
Notifications
You must be signed in to change notification settings - Fork 22
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
Possible memory leak? #79
Comments
I think the openssl base64 decoder is leaking a bit, but I can't see what I'm doing wrong. |
I think at least part of the problem is fixed. I'm getting this now:
|
Actually I cannot reproduce this with the CRAN version. For me the usage stabilizes after a while, maybe the memory from your example is just added to R's memory pool, but not lost. Does this keep growing infinitely for you? for(i in 1:500){
for (i in 1:1000) openssl::my_pubkey()
rm(list=ls()); gc()
print(ps::ps_memory_info(ps::ps_handle()))
}
Othewise it may have to do with the version of libssl. |
Yeah, it is growing, slowly. EDIT: maybe not indefinitely.... |
Yeah, I think it is good. |
This would make a nice tool for spotting memory leaks btw. Where you can feed it a function, and it will repeatedly call it and show how memory usage grows over time. |
IDK, it is a lot more low-tech than valgrind. :) |
Valgrind often has so many false positives that it's hard to make sense of it, and see how serious the problem is. |
Seems like
read_pubkey()
leaks a bit of memory:The text was updated successfully, but these errors were encountered: