pam_smbpass: Wrap calls in talloc_stackframe() to avoid warnings about leaking memory
authorAndrew Bartlett <abartlet@samba.org>
Tue, 1 Apr 2014 04:01:26 +0000 (17:01 +1300)
committerJeremy Allison <jra@samba.org>
Tue, 1 Apr 2014 22:31:48 +0000 (00:31 +0200)
commit8f3a516acb8c95cd6d88bf80abd495ac0cafaae3
treeb96b79f76c068706b409ab31c4eb421753ae6df6
parentbc5bd4010e8fedf19047ed6f7a793cd373f9f14f
pam_smbpass: Wrap calls in talloc_stackframe() to avoid warnings about leaking memory

Any code in source3 is permitted to use talloc_tos() at any point, so we must protect all the library interfaces
against memory leaks this way.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/pam_smbpass/pam_smb_acct.c
source3/pam_smbpass/pam_smb_auth.c
source3/pam_smbpass/pam_smb_passwd.c