Skip to content

Commit

Permalink
Merge pull request #2407 from Wang-Yue/patch-13
Browse files Browse the repository at this point in the history
fix memory leak of buffer in fs.c
  • Loading branch information
nesbox authored Dec 17, 2023
2 parents 2ecc6be + aa44135 commit 561c56b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/studio/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ void tic_fs_hashload(tic_fs* fs, const char* name, const char* hash, fs_load_cal
if (buffer)
{
callback(buffer, size, data);
free(buffer);
return;
}
}
Expand Down

0 comments on commit 561c56b

Please sign in to comment.