mirror of https://github.com/ipxe/ipxe.git
				
				
				
			convert to zalloc
							parent
							
								
									da3c785816
								
							
						
					
					
						commit
						1ccb6f9dc6
					
				|  | @ -62,9 +62,8 @@ static void free_image ( struct refcnt *refcnt ) { | ||||||
| struct image * alloc_image ( void ) { | struct image * alloc_image ( void ) { | ||||||
| 	struct image *image; | 	struct image *image; | ||||||
| 
 | 
 | ||||||
| 	image = malloc ( sizeof ( *image ) ); | 	image = zalloc ( sizeof ( *image ) ); | ||||||
| 	if ( image ) { | 	if ( image ) { | ||||||
| 		memset ( image, 0, sizeof ( *image ) ); |  | ||||||
| 		image->refcnt.free = free_image; | 		image->refcnt.free = free_image; | ||||||
| 	} | 	} | ||||||
| 	return image; | 	return image; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue