summaryrefslogtreecommitdiffstats
path: root/src/core/image.c
diff options
context:
space:
mode:
authorMichael Brown2007-01-12 09:02:27 +0100
committerMichael Brown2007-01-12 09:02:27 +0100
commit475d6d1f7c7f169a89ea363ad819b0dd2975ae10 (patch)
tree000239996a57f863fb56326ed137bf85c3517934 /src/core/image.c
parentAllow "imgexec" with no arguments to boot the file that was loaded with (diff)
downloadipxe-475d6d1f7c7f169a89ea363ad819b0dd2975ae10.tar.gz
ipxe-475d6d1f7c7f169a89ea363ad819b0dd2975ae10.tar.xz
ipxe-475d6d1f7c7f169a89ea363ad819b0dd2975ae10.zip
fetch() now knows nothing about struct image; it simply loads a file and
returns the allocated buffer.
Diffstat (limited to 'src/core/image.c')
-rw-r--r--src/core/image.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/image.c b/src/core/image.c
index 51998982..ce69c8a3 100644
--- a/src/core/image.c
+++ b/src/core/image.c
@@ -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;
}