pam_smbpass: Wrap calls in talloc_stackframe() to avoid warnings about leaking memory
commit14a9705c78ffa733ec9ab9b6330cc36b32a77661
authorAndrew Bartlett <abartlet@samba.org>
Tue, 1 Apr 2014 04:01:26 +0000 (1 17:01 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:12 +0000 (15 12:46 +0200)
tree273b70917bf4596a1e1c53b6a95e3560a5e1258e
parent14e7f9888bf29fdb5ee56f79e71890d697aa1b20
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>
(cherry picked from commit 8f3a516acb8c95cd6d88bf80abd495ac0cafaae3)
source3/pam_smbpass/pam_smb_acct.c
source3/pam_smbpass/pam_smb_auth.c
source3/pam_smbpass/pam_smb_passwd.c