summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-09-17 10:26:23 +0000
committerSimo Sorce <idra@samba.org>2001-09-17 10:26:23 +0000
commit87945989c0383bd012be7ab8bc5920b6d03fa105 (patch)
treec650e6f47153cb7949a090fd73c1400358a943ed /source3/rpcclient
parente7db47bffba15bd087c90b3831f05d736b8b20e5 (diff)
downloadsamba-87945989c0383bd012be7ab8bc5920b6d03fa105.tar.gz
samba-87945989c0383bd012be7ab8bc5920b6d03fa105.tar.bz2
samba-87945989c0383bd012be7ab8bc5920b6d03fa105.zip
move to SAFE_FREE()
(This used to be commit 5ceecc7bef71b455ba7c4efd9928e2433dccc961)
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;
}