fix free memory define