pam: Fix CID 1034871 Resource leak
authorVolker Lendecke <vl@samba.org>
Tue, 3 Mar 2015 15:12:03 +0000 (16:12 +0100)
committerRalph Böhme <slow@samba.org>
Tue, 3 Mar 2015 19:03:25 +0000 (20:03 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Mar  3 20:03:25 CET 2015 on sn-devel-104

nsswitch/pam_winbind.c

index c6467c76d8df5fd2b38ca7926d2f386673749dcc..1e1674137f2827a096ae918b7475e2c9fa7308b3 100644 (file)
@@ -2470,6 +2470,7 @@ static char* winbind_upn_to_username(struct pwb_context *ctx,
 
        result = talloc_asprintf(ctx, "%s%c%s", domain, sep, name);
        wbcFreeMemory(domain);
+       wbcFreeMemory(name);
        return result;
 }