From af16ee6327605b8ba235d3d4670eb84a1b9f4235 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sun, 4 Oct 2015 13:42:25 +0100 Subject: [PATCH] Free tune_data when returning from CompileIntonation. --- src/compiledata.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiledata.cpp b/src/compiledata.cpp index 8a0e57bd..03c816a2 100644 --- a/src/compiledata.cpp +++ b/src/compiledata.cpp @@ -3999,6 +3999,7 @@ void CompileIntonation() { fclose(f_in); fclose(f_errors); + free(tune_data); return; } @@ -4185,6 +4186,7 @@ void CompileIntonation() } } fwrite(tune_data, n_tune_names, sizeof(TUNE), f_out); + free(tune_data); fclose(f_in); fclose(f_out);