mirror of
				https://github.com/samba-team/samba.git
				synced 2025-11-04 00:23:49 +03:00 
			
		
		
		
	r20276: remove unneeded talloc_strdup()
metze
This commit is contained in:
		
				
					committed by
					
						
						Gerald (Jerry) Carter
					
				
			
			
				
	
			
			
			
						parent
						
							4b9e196288
						
					
				
				
					commit
					c4733b20c7
				
			@@ -510,11 +510,11 @@ BOOL asn1_read_OID_String(struct asn1_data *data, const char **OID)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (!data->has_error) {
 | 
			
		||||
		*OID = talloc_strdup(NULL, tmp_oid);
 | 
			
		||||
		if (!*OID) goto nomem;
 | 
			
		||||
		*OID = tmp_oid;
 | 
			
		||||
	} else {
 | 
			
		||||
		talloc_free(tmp_oid);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	talloc_free(tmp_oid);
 | 
			
		||||
	return !data->has_error;
 | 
			
		||||
nomem:	
 | 
			
		||||
	talloc_free(tmp_oid);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user