the new getoutputformatOption should strdup values to avoid double-frees