mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
fetch() now knows nothing about struct image; it simply loads a file and
returns the allocated buffer.
This commit is contained in:
@@ -99,9 +99,7 @@ struct image * find_image ( const char *name ) {
|
||||
* image.
|
||||
*/
|
||||
void free_image ( struct image *image ) {
|
||||
if ( image->free )
|
||||
image->free ( image->data );
|
||||
image->free = NULL;
|
||||
efree ( image->data );
|
||||
image->data = UNULL;
|
||||
image->len = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user