Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CCXXXI committed Jan 10, 2021
1 parent 14a7248 commit b5252b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/userprog/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ static pid_t exec(const char *cmd_line)

if (child->status == PROCESS_FAILED)
{
sema_down(&child->sema_wait);
palloc_free_page(child);
return -1;
}
Expand Down

0 comments on commit b5252b8

Please sign in to comment.