#include <string.h>
#include <stdint.h>
+#include <stdlib.h>
#include <errno.h>
#include <byteswap.h>
-#include <malloc.h>
#include <vsprintf.h>
#include <gpxe/list.h>
#include <gpxe/in.h>
* @v fragbug Fragment buffer
*/
static void free_fragbuf ( struct frag_buffer *fragbuf ) {
- if ( fragbuf ) {
- free_dma ( fragbuf, sizeof ( *fragbuf ) );
- }
+ free ( fragbuf );
}
/**