We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hi, when I use someone else's code, then it's only fair for me to help out if I spot a problem with it.
Your code has memory leak for function "int ff7_read_field_file" Line 626 in file.cpp
Specifically, you allocate memory and then allow the possibility of a return without freeing memory.
uint32_t size = lgp_get_filesize(lgp_file, 1); char* dest = (char*)driver_malloc(size); char* original_field_data = (char*)driver_malloc(*ff7_externals.known_field_buffer_size); if ( !ff7_externals.field_file_buffer ) return 0;
The text was updated successfully, but these errors were encountered:
a705a42
Thanks a lot for the feedback!
Sorry, something went wrong.
julianxhokaxhiu
No branches or pull requests
Hi, when I use someone else's code, then it's only fair for me to help out if I spot a problem with it.
Your code has memory leak for function "int ff7_read_field_file"
Line 626 in file.cpp
Specifically, you allocate memory and then allow the possibility of a return without freeing memory.
uint32_t size = lgp_get_filesize(lgp_file, 1);
char* dest = (char*)driver_malloc(size);
char* original_field_data = (char*)driver_malloc(*ff7_externals.known_field_buffer_size);
if ( !ff7_externals.field_file_buffer ) return 0;
The text was updated successfully, but these errors were encountered: