Skip to content

Commit

Permalink
User: close file ptr before abort() (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
rilysh authored Sep 27, 2023
1 parent 43bc1e4 commit 9870667
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions User/Library/UserFile.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ UserWriteFile (
}

if (fwrite (Data, Size, 1, FilePtr) != 1) {
fclose (FilePtr);
abort ();
}

Expand Down

0 comments on commit 9870667

Please sign in to comment.