You are correct. Yes leaky gut needs to be sealed and healed before targeting candida which is just yeast.
I take sangra de dragon which is an amazon herb that actually strengthen the intestinal tract and heal/seal the holes in the intestines. Its an sap that stops a wound from bleeding due to its "band-aid" effect. And thats what sangra de dragon does to a leaky gut as well.