When you are holding lighted flare and then you switch to the melee weapon (or normal weapon) by hotbar, your flare will turn off and goes to your inventory, instead of on the ground, still shining.
Since you cant turn off flares, I think this is a bug.