Fix memleaks in test_attribute
1 file changed