summaryrefslogtreecommitdiffstats
path: root/source/rpcclient/cmd_echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/rpcclient/cmd_echo.c')
-rw-r--r--source/rpcclient/cmd_echo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpcclient/cmd_echo.c b/source/rpcclient/cmd_echo.c
index fa4e6916633..fce8e4c7b8f 100644
--- a/source/rpcclient/cmd_echo.c
+++ b/source/rpcclient/cmd_echo.c
@@ -60,7 +60,7 @@ static NTSTATUS cmd_echo_data(struct cli_state *cli, TALLOC_CTX *mem_ctx,
}
size = atoi(argv[1]);
- in_data = malloc(size);
+ in_data = SMB_MALLOC(size);
for (i = 0; i < size; i++)
in_data[i] = i & 0xff;
@@ -129,7 +129,7 @@ static NTSTATUS cmd_echo_sink_data(struct cli_state *cli, TALLOC_CTX *mem_ctx,
}
size = atoi(argv[1]);
- in_data = malloc(size);
+ in_data = SMB_MALLOC(size);
for (i = 0; i < size; i++)
in_data[i] = i & 0xff;