s3: client tools: Call popt_free_cmdline_auth_info() on all normal exits.
[bbaumbach/samba-autobuild/.git] / examples / fuse / smb2mount.c
index 4ed985f53c4baccbadd7939c9dc27e40a805f932..816b0b597ad4847fe5cc8a963696d5b0b9b782a6 100644 (file)
@@ -143,7 +143,7 @@ int main(int argc, char *argv[])
        *share = 0;
        share++;
 
-       cli = connect_one(cmdline_auth_info, server, port, share);
+       cli = connect_one(popt_get_cmdline_auth_info(), server, port, share);
        if (cli == NULL) {
                return -1;
        }
@@ -154,6 +154,7 @@ int main(int argc, char *argv[])
                return -1;
        }
 
+       popt_free_cmdline_auth_info();
        TALLOC_FREE(frame);
        return 0;
 }