(ITS#5642) Double free on exit, when specific attributetype is defined