Skip to content

Commit

Permalink
Close file stream
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Sep 7, 2023
1 parent b8c6873 commit 90c8512
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sb_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ static uint8_t* sb_load_file_data(const char* path, size_t *file_size){
if(size==EOF){size = 0; free(data);}
if(file_size)*file_size = size;
printf("Loaded file %s file_size %zu\n",path,*file_size);
fclose(f);
return data;
}else{
printf("Failed to open file %s\n",path);
Expand Down

0 comments on commit 90c8512

Please sign in to comment.