-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
IsClientAuthorized() memory leak #87
Comments
It is a problem with polkit. I do not use this feature but it is enabled on RedHat and derivatives. According to the
This is what my code is doing in https://github.com/LudovicRousseau/PCSC/blob/master/src/auth.c#L149 So maybe the problem is in polkit and not pcsclite. Can you try to check if the memory allocated by |
Thanks for your reply and help. Can you explain, how can I do it? |
I was thinking about a code that would do:
and watch if you have a memory leak. That could indicate the problem is within polkit and not with pcsc-lite. |
tpol.c
compile options:
result:
valgrind crashes with segfault: |
Hm, but if I add
output:
Magic... |
Very strange. |
I think you should report the problem to polkit. |
After some tests, memory leak repeated.
And result was:
|
I open issue to polkit: https://gitlab.freedesktop.org/polkit/polkit/-/issues/130 |
The problem is not in pcsc-lite. |
OS:
How to reproduce leaks:
/usr/sbin/pcscd --foreground --auto-exit
pkcs11_eventmgr nodaemon debug
valgrind output:
ps output:
The text was updated successfully, but these errors were encountered: