mirror of
https://github.com/starr-dusT/tzdb_to_nx
synced 2024-03-05 21:18:52 -08:00
main: Resolve memory leak
I forgot to free the file buffer once I was done with it. Delete it and avoid a memory leak.
This commit is contained in:
parent
80994fc409
commit
f479989903
@ -122,6 +122,8 @@ int main(int argc, char *argv[]) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
delete[] buf;
|
||||
|
||||
std::vector<u_int8_t> output_buffer;
|
||||
tzif_data->ReformatNintendo(output_buffer);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user