With this change, the test_clone() test in testbuffer.c no longer causes a leak according to valgrind.