Changeset 39 for trunk/samba/source/libsmb/samlogon_cache.c
- Timestamp:
- May 27, 2007, 12:26:26 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/libsmb/samlogon_cache.c
r26 r39 195 195 196 196 if ( data.dptr ) { 197 198 if ( (user = SMB_MALLOC_P(NET_USER_INFO_3)) == NULL ) 197 198 user = TALLOC_ZERO_P(mem_ctx, NET_USER_INFO_3); 199 if (user == NULL) { 199 200 return NULL; 200 201 } 202 201 203 prs_init( &ps, 0, mem_ctx, UNMARSHALL ); 202 204 prs_give_memory( &ps, data.dptr, data.dsize, True ); … … 204 206 if ( !prs_uint32( "timestamp", &ps, 0, &t ) ) { 205 207 prs_mem_free( &ps ); 206 SAFE_FREE(user);208 TALLOC_FREE(user); 207 209 return False; 208 210 } 209 211 210 212 if ( !net_io_user_info3("", user, &ps, 0, 3, 0) ) { 211 SAFE_FREE( user );213 TALLOC_FREE( user ); 212 214 } 213 215 … … 228 230 DEBUG(10,("netsamlogon_cache_get: cache entry expired \n")); 229 231 tdb_delete( netsamlogon_tdb, key ); 230 SAFE_FREE( user );232 TALLOC_FREE( user ); 231 233 } 232 234 #endif … … 250 252 251 253 talloc_destroy(mem_ctx); 252 SAFE_FREE(user);253 254 254 255 return result;
Note:
See TracChangeset
for help on using the changeset viewer.