On St, 2015-07-29 at 12:19 +0000, Valluri, Amarnath wrote:
Hello pam-devels,
In library code, the dynamically allocated(realloc) memory returned by
pam_modutil_getgrnam/pid() pma_modutil_getpwnam/uid() functions, ie.,
struct group*, struct passwd* respectively is never been freed, so it
leaks the memory quiet many modules which uses these functions.
Can someone help me understanding this, if this is intentional or a
bug?
The memory pointer is registered as pam data with pam_set_data and freed
via the cleanup function when pam_end() is called by the application.
So there is no memory leak.
--
Tomas Mraz
No matter how far down the wrong road you've gone, turn back.
Turkish proverb
(You'll never know whether the road is wrong though.)