1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

s3: client tools: Call popt_free_cmdline_auth_info() on all normal exits.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Jeremy Allison 2017-04-25 17:08:30 -07:00 committed by Andreas Schneider
parent bec0cd2ee2
commit 47dc643b0d
6 changed files with 10 additions and 0 deletions

View File

@ -154,6 +154,7 @@ int main(int argc, char *argv[])
return -1;
}
popt_free_cmdline_auth_info();
TALLOC_FREE(frame);
return 0;
}

View File

@ -1525,6 +1525,7 @@ static bool do_altname(const char *name)
static int cmd_quit(void)
{
cli_shutdown(cli);
popt_free_cmdline_auth_info();
exit(0);
/* NOTREACHED */
return 0;
@ -1983,6 +1984,7 @@ static int do_put(const char *rname, const char *lname, bool reput)
if (f == stdin) {
cli_shutdown(cli);
popt_free_cmdline_auth_info();
exit(rc);
}
@ -6003,6 +6005,7 @@ int main(int argc,char *argv[])
rc = 1;
}
popt_free_cmdline_auth_info();
TALLOC_FREE(frame);
return rc;
}

View File

@ -1245,6 +1245,7 @@ done:
if (cli != NULL) {
cli_shutdown(cli);
}
popt_free_cmdline_auth_info();
TALLOC_FREE(frame);
return result;
}

View File

@ -926,6 +926,7 @@ int main(int argc, char *argv[])
exit(EXIT_FAILED);
}
} else {
popt_free_cmdline_auth_info();
exit(0);
}
@ -951,6 +952,7 @@ int main(int argc, char *argv[])
result = cacl_dump(cli, filename, numeric);
}
popt_free_cmdline_auth_info();
TALLOC_FREE(frame);
return result;

View File

@ -732,6 +732,7 @@ FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT", "SETSTRING" },
exit(EXIT_FAILED);
}
} else {
popt_free_cmdline_auth_info();
exit(EXIT_OK);
}
@ -756,6 +757,7 @@ FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT", "SETSTRING" },
break;
}
popt_free_cmdline_auth_info();
talloc_free(frame);
return result;

View File

@ -322,6 +322,7 @@ int main(int argc, char *argv[])
return 1;
}
popt_free_cmdline_auth_info();
TALLOC_FREE(frame);
return 0;
}