diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c index 6d9bb6fb4e8eac3fcb616ad795670ebfa1d0781d..2abc7136e0cabfee4db3ded4edcb04fca0da61d6 100644 --- a/bsd-user/bsdload.c +++ b/bsd-user/bsdload.c @@ -196,7 +196,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 ; irss++; /* FIXME - check return value of memcpy_to_target() for failure */ memcpy_to_target(stack_base, bprm->page[i], TARGET_PAGE_SIZE); - free(bprm->page[i]); + g_free(bprm->page[i]); } stack_base += TARGET_PAGE_SIZE; }