diff options
author | Simo Sorce <idra@samba.org> | 2001-09-17 02:19:44 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-09-17 02:19:44 +0000 |
commit | 484a7c0341fe033fe26fe1e6b597ed1c456c39d4 (patch) | |
tree | c2f2344c757fffba5b6cc190e6ed13ef64b89266 /source3/lib/wins_srv.c | |
parent | 31c3f7a8b2ff62d4cfc1ed9d831b95eba0da525f (diff) | |
download | samba-484a7c0341fe033fe26fe1e6b597ed1c456c39d4.tar.gz |
move to SAFE_FREE()
(This used to be commit 60e907b7e8e1c008463a88ed2b076344278986ef)
Diffstat (limited to 'source3/lib/wins_srv.c')
-rw-r--r-- | source3/lib/wins_srv.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/lib/wins_srv.c b/source3/lib/wins_srv.c index e6c0c516083..5a9b065008e 100644 --- a/source3/lib/wins_srv.c +++ b/source3/lib/wins_srv.c @@ -131,9 +131,8 @@ BOOL wins_srv_load_list( char *src ) /* Empty the list. */ while( NULL != (entry =(list_entry *)ubi_slRemHead( wins_srv_list )) ) { - if( entry->server ) - free( entry->server ); - free( entry ); + SAFE_FREE( entry->server ); + SAFE_FREE( entry ); } (void)ubi_slInitList( wins_srv_list ); /* shouldn't be needed */ @@ -152,7 +151,7 @@ BOOL wins_srv_load_list( char *src ) /* Create a copy of the server name and store it in the list. */ if( NULL == (entry->server = strdup( wins_id_bufr )) ) { - free( entry ); + SAFE_FREE( entry ); DEBUG( 0, ("wins_srv_load_list(): strdup(\"%s\") failed.\n", wins_id_bufr) ); } |