summaryrefslogtreecommitdiffstats
path: root/source/lib/util.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-21 18:25:12 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-21 18:25:12 +0000
commit4b06f303235d36903b6e9f55ee45b987d98256b0 (patch)
treec42ea7eefcd3cb692ebc6370efaab06bfc0afe8c /source/lib/util.c
parent8976eca2db43576c32069dcda017e8777048e007 (diff)
downloadsamba-4b06f303235d36903b6e9f55ee45b987d98256b0.tar.gz
samba-4b06f303235d36903b6e9f55ee45b987d98256b0.tar.xz
samba-4b06f303235d36903b6e9f55ee45b987d98256b0.zip
turning some of the rpcclient functions dynamic. this is likely to
break a few things...
Diffstat (limited to 'source/lib/util.c')
-rw-r--r--source/lib/util.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 9a4d0d9e252..8afa2f8c017 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -3219,3 +3219,19 @@ BOOL become_user_permanently(uid_t uid, gid_t gid)
return(True);
}
+
+void free_char_array(uint32 num_entries, char **entries)
+{
+ uint32 i;
+ if (entries != NULL)
+ {
+ for (i = 0; i < num_entries; i++)
+ {
+ if (entries[i] != NULL)
+ {
+ free(entries[i]);
+ }
+ }
+ free(entries);
+ }
+}