diff options
author | Jeremy Allison <jra@samba.org> | 2001-12-26 08:32:30 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-12-26 08:32:30 +0000 |
commit | 26e4c4099c61c7ba9f2153e56061bea9882553d9 (patch) | |
tree | b68969a82c21508f28f511fc7263e5242351e47c /source/smbd/mangle.c | |
parent | 5e3491784277dd90180ef199d2fa258614958545 (diff) | |
download | samba-26e4c4099c61c7ba9f2153e56061bea9882553d9.tar.gz samba-26e4c4099c61c7ba9f2153e56061bea9882553d9.tar.xz samba-26e4c4099c61c7ba9f2153e56061bea9882553d9.zip |
Get religion on using SAFE_FREE.
Jeremy.
Diffstat (limited to 'source/smbd/mangle.c')
-rw-r--r-- | source/smbd/mangle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c index 7ef4107df7b..3d214d46589 100644 --- a/source/smbd/mangle.c +++ b/source/smbd/mangle.c @@ -465,7 +465,7 @@ static signed int cache_compare( ubi_btItemPtr ItemPtr, ubi_btNodePtr NodePtr ) static void cache_free_entry( ubi_trNodePtr WarrenZevon ) { ZERO_STRUCTP(WarrenZevon); - free( WarrenZevon ); + SAFE_FREE( WarrenZevon ); } /* cache_free_entry */ /* ************************************************************************** ** @@ -632,7 +632,7 @@ BOOL check_mangled_cache( char *s ) { /* Replace the saved_ext as it was truncated. */ (void)pstrcat( s, saved_ext ); - free(saved_ext); + SAFE_FREE(saved_ext); } return( False ); } @@ -648,7 +648,7 @@ BOOL check_mangled_cache( char *s ) { /* Replace the saved_ext as it was truncated. */ (void)pstrcat( s, saved_ext ); - free(saved_ext); + SAFE_FREE(saved_ext); } DEBUG( 3, ("as %s\n", s) ); @@ -1016,7 +1016,7 @@ BOOL name_map_mangle(char *OutName, BOOL need83, BOOL cache83, int snum) if(tmp != NULL) { cache_mangled_name(OutName, tmp); - free(tmp); + SAFE_FREE(tmp); } } |