From 87945989c0383bd012be7ab8bc5920b6d03fa105 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 17 Sep 2001 10:26:23 +0000 Subject: move to SAFE_FREE() (This used to be commit 5ceecc7bef71b455ba7c4efd9928e2433dccc961) --- source3/rpcclient/cmd_lsarpc.c | 8 ++++---- source3/rpcclient/rpcclient.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index 16d29fc763..b928126ae3 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -234,14 +234,14 @@ static NTSTATUS cmd_lsa_lookup_sids(struct cli_state *cli, int argc, char **argv } #if 0 /* JERRY */ - safe_free(sids); - safe_free(types); + SAFE_FREE(sids); + SAFE_FREE(types); for (i = 0; i < num_names; i++) { - safe_free(names[i]); + SAFE_FREE(names[i]); } - safe_free(names); + SAFE_FREE(names); #endif done: diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index ca0df63c35..186cc130d4 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -84,7 +84,7 @@ static char **completion_fn(char *text, int start, int end) } if (count == 2) { - free(matches[0]); + SAFE_FREE(matches[0]); matches[0] = strdup(matches[1]); } matches[count] = NULL; @@ -453,10 +453,10 @@ static NTSTATUS do_cmd(struct cli_state *cli, struct cmd_set *cmd_entry, char *c /* Cleanup */ for (i = 0; i < argc; i++) { - free(argv[i]); + SAFE_FREE(argv[i]); } - free(argv); + SAFE_FREE(argv); return result; } -- cgit