mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
remove unneaded memory leaking code.
This commit is contained in:
parent
33ae29028b
commit
d2c663185e
@ -904,14 +904,6 @@ static NTSTATUS cmd_reg_shutdown(struct cli_state *cli, TALLOC_CTX *mem_ctx,
|
||||
uint16 flgs = 0;
|
||||
int opt;
|
||||
int ret;
|
||||
char *srv_name;
|
||||
|
||||
ret = asprintf (&srv_name, "\\\\%s", cli->desthost);
|
||||
if (ret < 0) {
|
||||
DEBUG(0,("cmd_reg_shutdown: Not enough memory!\n"));
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
strupper(srv_name);
|
||||
|
||||
*msg = 0;
|
||||
optind = 0; /* TODO: test if this hack works on other systems too --simo */
|
||||
@ -967,14 +959,6 @@ static NTSTATUS cmd_reg_abort_shutdown(struct cli_state *cli,
|
||||
{
|
||||
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
|
||||
int ret;
|
||||
char *srv_name;
|
||||
|
||||
ret = asprintf(&srv_name, "\\\\%s", cli->desthost);
|
||||
if (ret < 0) {
|
||||
DEBUG(0,("cmd_reg_shutdown: Not enough memory!\n"));
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
strupper(srv_name);
|
||||
|
||||
result = cli_reg_abort_shutdown(cli, mem_ctx, srv_name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user