I'd need a little more detail to call correctness, because the first form is used only with 'help' as a noun or with the phrase having a different meaning: 'We need some help putting out a/the fire'. ' (= we couldn't avoid extinguishing the fire) In the latter two cases, 'help to put out a fire' is the standard form, with the alternative 'help put out a fire', which is considered more casual by some. I personally use both interchangeably.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.