D&d 5e flame tongue not being held

If a character drops a flame tongue in a mountainous area, can they speak the command word to make flames erupt front the sword to make it easier to find, even though he would not be holding it?

Would the flames immediately go out, or would they continue until picked up and dropped or sheathed?