Note: idmap_get_mappings() returns an array of structures containing strings allocated by strdup(). The caller has to free those before freeing the array. I'm testing this fix. Please review: http://cr.illumos.org/view/wzig7gbx/ Thanks, Gordon