The court set aside their arrests and directed for them to be released from judicial custody unless they are required in any other cases