summaryrefslogtreecommitdiff
path: root/src/sound.test.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-08-31 00:14:50 -0500
committersanine <sanine.not@pm.me>2022-08-31 00:14:50 -0500
commitb4db9391540442f9708388731d5bcd6fc59b6f5c (patch)
treec711b9d0316ca057c51faee92b71e3b4094f4076 /src/sound.test.c
parent26952167e940e900cd0e1fa7452c4f163640cbe3 (diff)
fix memory leaks in test
Diffstat (limited to 'src/sound.test.c')
-rw-r--r--src/sound.test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sound.test.c b/src/sound.test.c
index 60dcdd1..01cb2dc 100644
--- a/src/sound.test.c
+++ b/src/sound.test.c
@@ -22,6 +22,9 @@ void test_sound_copy()
lily_assert_memory_equal(dest.left, left, 3*sizeof(float));
lily_assert_not_null(dest.right);
lily_assert_memory_equal(dest.right, right, 3*sizeof(float));
+
+ free(dest.left);
+ free(dest.right);
}