summaryrefslogtreecommitdiffstats
path: root/tests/ingen_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-04 15:09:47 -0400
committerDavid Robillard <d@drobilla.net>2024-06-04 15:09:47 -0400
commit27992a3548ed679cf559472a51737b03731c4227 (patch)
tree6be345bc30622c8daa0cead96e105fd9ed37e6ee /tests/ingen_test.cpp
parentfbb83ba95f3f656db1222c4d70843f90b8200053 (diff)
downloadingen-27992a3548ed679cf559472a51737b03731c4227.tar.gz
ingen-27992a3548ed679cf559472a51737b03731c4227.tar.bz2
ingen-27992a3548ed679cf559472a51737b03731c4227.zip
Fix potential memory leak
Diffstat (limited to 'tests/ingen_test.cpp')
-rw-r--r--tests/ingen_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp
index ff61d7db..8a3d9007 100644
--- a/tests/ingen_test.cpp
+++ b/tests/ingen_test.cpp
@@ -184,6 +184,7 @@ run(int argc, char** argv)
#endif
if (!atom_reader.write(forge.atom(), n_events + 1)) {
+ delete cmds;
return EXIT_FAILURE;
}