summaryrefslogtreecommitdiffstats
path: root/source/groupdb/mapping.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-09-17 04:16:35 +0000
committerSimo Sorce <idra@samba.org>2001-09-17 04:16:35 +0000
commite61aec84edaf55b9ee087b076d2f1311033dc839 (patch)
tree8436c99d8434e0436b1122a676b53fd9c8069361 /source/groupdb/mapping.c
parent23dc3fc7009ce40064db57d5ec8b720c7d9350a8 (diff)
downloadsamba-e61aec84edaf55b9ee087b076d2f1311033dc839.tar.gz
samba-e61aec84edaf55b9ee087b076d2f1311033dc839.tar.xz
samba-e61aec84edaf55b9ee087b076d2f1311033dc839.zip
move to SAFE_FREE()
Diffstat (limited to 'source/groupdb/mapping.c')
-rw-r--r--source/groupdb/mapping.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/groupdb/mapping.c b/source/groupdb/mapping.c
index fee6bf248a6..a6a63cbc2a8 100644
--- a/source/groupdb/mapping.c
+++ b/source/groupdb/mapping.c
@@ -294,7 +294,7 @@ BOOL get_group_map_from_gid(gid_t gid, GROUP_MAP *map)
for (kbuf = tdb_firstkey(tdb);
kbuf.dptr;
- newkey = tdb_nextkey(tdb, kbuf), free(kbuf.dptr), kbuf=newkey) {
+ newkey = tdb_nextkey(tdb, kbuf), safe_free(kbuf.dptr), kbuf=newkey) {
if (strncmp(kbuf.dptr, GROUP_PREFIX, strlen(GROUP_PREFIX)) != 0) continue;
@@ -331,7 +331,7 @@ BOOL get_group_map_from_ntname(char *name, GROUP_MAP *map)
for (kbuf = tdb_firstkey(tdb);
kbuf.dptr;
- newkey = tdb_nextkey(tdb, kbuf), free(kbuf.dptr), kbuf=newkey) {
+ newkey = tdb_nextkey(tdb, kbuf), safe_free(kbuf.dptr), kbuf=newkey) {
if (strncmp(kbuf.dptr, GROUP_PREFIX, strlen(GROUP_PREFIX)) != 0) continue;
@@ -404,7 +404,7 @@ BOOL enum_group_mapping(enum SID_NAME_USE sid_name_use, GROUP_MAP **rmap,
for (kbuf = tdb_firstkey(tdb);
kbuf.dptr;
- newkey = tdb_nextkey(tdb, kbuf), free(kbuf.dptr), kbuf=newkey) {
+ newkey = tdb_nextkey(tdb, kbuf), safe_free(kbuf.dptr), kbuf=newkey) {
if (strncmp(kbuf.dptr, GROUP_PREFIX, strlen(GROUP_PREFIX)) != 0)
continue;