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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user