Skip to content

Commit

Permalink
User/File: Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaeuser committed Jun 20, 2023
1 parent 76b3063 commit 8d85c55
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 @@ -100,6 +100,7 @@ UserReadFile (

if (fread (Buffer, (size_t)FileSize, 1, FilePtr) != 1) {
fclose (FilePtr);
free (Buffer);
return NULL;
}

Expand Down

0 comments on commit 8d85c55

Please sign in to comment.