Fixed large memory leak in resource introduced last week. Small memory leak persists in server.