fixed

delete allocated memory