release allocd objects in multiple files