From d2c663185e13974f953a60adf1b191b56bfa08f4 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 30 Dec 2001 08:37:34 +0000 Subject: [PATCH] remove unneaded memory leaking code. --- source/rpcclient/cmd_reg.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/source/rpcclient/cmd_reg.c b/source/rpcclient/cmd_reg.c index 991d76b3a32..22a420a27ec 100644 --- a/source/rpcclient/cmd_reg.c +++ b/source/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);