]> git.proxmox.com Git - mirror_qemu.git/blobdiff - bsd-user/bsdload.c
rbd: Reject -blockdev server.*.{numeric, to, ipv4, ipv6}
[mirror_qemu.git] / bsd-user / bsdload.c
index 6d9bb6fb4e8eac3fcb616ad795670ebfa1d0781d..94eec363b21f5dc061f344490419e5ec69b6f9ec 100644 (file)
@@ -1,12 +1,6 @@
 /* Code for loading BSD executables.  Mostly linux kernel code.  */
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <stdlib.h>
+#include "qemu/osdep.h"
 
 #include "qemu.h"
 
@@ -196,7 +190,7 @@ int loader_exec(const char * filename, char ** argv, char ** envp,
 
     /* Something went wrong, return the inode and free the argument pages*/
     for (i=0 ; i<MAX_ARG_PAGES ; i++) {
-        free(bprm.page[i]);
+        g_free(bprm.page[i]);
     }
     return(retval);
 }