diff --git a/test/buf_inspect_test.c b/test/buf_inspect_test.c
index c89c5a9..3598e71 100644
--- a/test/buf_inspect_test.c
+++ b/test/buf_inspect_test.c
@@ -130,6 +130,7 @@
TEST_EQ(buf.wpos, strlen(expected)); \
if (g_test_last_ok) \
TEST_STRNCMP(buf.ptr.p, (expected), buf.wpos); \
+ list_delete_all(list_test); \
buf_clean(&buf_test); \
buf_clean(&buf); \
test_context(NULL); \