diff options
author | Luke Leighton <lkcl@samba.org> | 1999-10-21 18:25:12 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-10-21 18:25:12 +0000 |
commit | 52fed795e156b9db8a0f29d9087042ccdec093f5 (patch) | |
tree | 38680f9baf542752561306fe4df0bc0783070894 /source3/lib | |
parent | 6f9105c853020fde1691a28cd707d6d3f6561b4d (diff) | |
download | samba-52fed795e156b9db8a0f29d9087042ccdec093f5.tar.gz samba-52fed795e156b9db8a0f29d9087042ccdec093f5.tar.bz2 samba-52fed795e156b9db8a0f29d9087042ccdec093f5.zip |
turning some of the rpcclient functions dynamic. this is likely to
break a few things...
(This used to be commit 4b06f303235d36903b6e9f55ee45b987d98256b0)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 9a4d0d9e25..8afa2f8c01 100644 --- a/source3/lib/util.c +++ b/source3/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); + } +} |