summaryrefslogtreecommitdiff
path: root/source/rpcclient/rpcclient.c
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
commit5ceecc7bef71b455ba7c4efd9928e2433dccc961 (patch)
tree0d0b7ec9b19c7b4d961a035f3c60c91457a5216e /source/rpcclient/rpcclient.c
parent94b0fde8a8a4e888cee93ebde79390c7942a2785 (diff)
downloadsamba-5ceecc7bef71b455ba7c4efd9928e2433dccc961.tar.gz
move to SAFE_FREE()
Diffstat (limited to 'source/rpcclient/rpcclient.c')
-rw-r--r--source/rpcclient/rpcclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/rpcclient/rpcclient.c b/source/rpcclient/rpcclient.c
index ca0df63c35c..186cc130d48 100644
--- a/source/rpcclient/rpcclient.c
+++ b/source/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;
}