mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 19:38:37 +03:00
Rename e{malloc,realloc,free} to u{malloc,realloc,free}, to more obviously
reflect the fact that they allocate and deallocate user memory (i.e. things reached through a userptr_t).
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#include <errno.h>
|
||||
#include <vsprintf.h>
|
||||
#include <gpxe/image.h>
|
||||
#include <gpxe/emalloc.h>
|
||||
#include <gpxe/umalloc.h>
|
||||
#include <usr/fetch.h>
|
||||
#include <usr/imgmgmt.h>
|
||||
|
||||
@@ -66,7 +66,7 @@ int imgfetch ( const char *filename, const char *name,
|
||||
return 0;
|
||||
|
||||
err:
|
||||
efree ( image->data );
|
||||
ufree ( image->data );
|
||||
free ( image );
|
||||
return rc;
|
||||
}
|
||||
@@ -139,6 +139,6 @@ void imgstat ( struct image *image ) {
|
||||
*/
|
||||
void imgfree ( struct image *image ) {
|
||||
unregister_image ( image );
|
||||
efree ( image->data );
|
||||
ufree ( image->data );
|
||||
free ( image );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user