1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

move to SAFE_FREE()

This commit is contained in:
Simo Sorce
-
parent 5ceecc7bef
commit a95943fde0
32 changed files with 145 additions and 193 deletions

View File

@ -451,7 +451,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 */
/* ************************************************************************** **
@ -618,7 +618,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 );
}
@ -634,7 +634,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) );
@ -957,7 +957,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);
}
}