diff options
author | Simo Sorce <idra@samba.org> | 2001-09-17 04:52:45 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-09-17 04:52:45 +0000 |
commit | b50d10c2a313b45bbc195b13a353a20af0ab917a (patch) | |
tree | 9da47962670ff5b98c6f34ec085ffae507a4edc6 /source3/nsswitch/winbindd_cache.c | |
parent | 1f312492ecf8b3215bddf5c2f2d9fb2cbe2bf098 (diff) | |
download | samba-b50d10c2a313b45bbc195b13a353a20af0ab917a.tar.gz samba-b50d10c2a313b45bbc195b13a353a20af0ab917a.tar.bz2 samba-b50d10c2a313b45bbc195b13a353a20af0ab917a.zip |
move to SAFE_FREE()
(This used to be commit 03dc67788f68c9e01b5a82fdf43f837cb19f4608)
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 07b1cab583..3fa50abfba 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -61,7 +61,7 @@ static uint32 cached_sequence_number(char *domain_name) goto refetch; } memcpy(&rec, dbuf.dptr, sizeof(rec)); - free(dbuf.dptr); + SAFE_FREE(dbuf.dptr); if (t < (rec.mod_time + lp_winbind_cache_time())) { DEBUG(3,("cached sequence number for %s is %u\n", @@ -359,7 +359,7 @@ static BOOL fetch_cache_entry(char *domain, char *cache_type, char *name, /* Copy found entry into buffer */ memcpy((char *)buf, data.dptr, len < data.dsize ? len : data.dsize); - free(data.dptr); + SAFE_FREE(data.dptr); return True; } |