summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-12-30 08:37:34 +0000
committerSimo Sorce <idra@samba.org>2001-12-30 08:37:34 +0000
commitf399e17542f7e4e4c0878cf76d587bbcfc6ee418 (patch)
treebe7fe41f31181c74f642ad8a5b543d8b1c7185ca /source3
parent436595a3865e1e1d70847f238281a542952ce752 (diff)
downloadsamba-f399e17542f7e4e4c0878cf76d587bbcfc6ee418.tar.gz
samba-f399e17542f7e4e4c0878cf76d587bbcfc6ee418.tar.bz2
samba-f399e17542f7e4e4c0878cf76d587bbcfc6ee418.zip
remove unneaded memory leaking code.
(This used to be commit d2c663185e13974f953a60adf1b191b56bfa08f4)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_reg.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/source3/rpcclient/cmd_reg.c b/source3/rpcclient/cmd_reg.c
index 991d76b3a3..22a420a27e 100644
--- a/source3/rpcclient/cmd_reg.c
+++ b/source3/rpcclient/cmd_reg.c
@@ -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);