From f47998990323577e15b99755d1fde5240fcee922 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Sat, 10 Feb 2024 17:22:47 -0500 Subject: [PATCH] main: Resolve memory leak I forgot to free the file buffer once I was done with it. Delete it and avoid a memory leak. --- src/tzdb2nx/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tzdb2nx/main.cpp b/src/tzdb2nx/main.cpp index 0b81dba..c182597 100644 --- a/src/tzdb2nx/main.cpp +++ b/src/tzdb2nx/main.cpp @@ -122,6 +122,8 @@ int main(int argc, char *argv[]) { return -1; } + delete[] buf; + std::vector output_buffer; tzif_data->ReformatNintendo(output_buffer);