only free allocated result