Fixed memory leak in test_carry.c