summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c8
-rw-r--r--source3/rpcclient/rpcclient.c6
2 files changed, 7 insertions, 7 deletions
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;
}