s3: popt: Change to NULL from talloc_autofree_context() now we correctly free on...
authorJeremy Allison <jra@samba.org>
Wed, 26 Apr 2017 00:09:18 +0000 (17:09 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 9 May 2017 12:00:40 +0000 (14:00 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue May  9 14:00:40 CEST 2017 on sn-devel-144

source3/lib/popt_common.c

index 004296801b94654236e70cec1f9b7e310c61ddd1..1c1e3d7c9d43b2050c21cb2702cba7b911190859 100644 (file)
@@ -265,7 +265,7 @@ static void popt_common_credentials_callback(poptContext con,
 {
        if (reason == POPT_CALLBACK_REASON_PRE) {
                struct user_auth_info *auth_info =
-                               user_auth_info_init(talloc_autofree_context());
+                               user_auth_info_init(NULL);
                if (auth_info == NULL) {
                        fprintf(stderr, "user_auth_info_init() failed\n");
                        exit(1);