Longford judge hits out at prison governor for releasing man