A bar tack
Set the stitch length very short and the width wide enough to cross the opening, not so wide that the needle hits the foot. Sew a short bar, then stop. If the machine has a named bar-tack stitch, the manual shows the steps. This varies by machine. The manual for the model in front of you is the authority. Do not copy a sequence from a different model. A hand bar tack is several long stitches across the point, then a tight wrapping stitch over them. Use that when the machine cannot zigzag. The pocket will still tear if only one straight stitch holds the corner.
Test the width on a scrap of the same layers. A needle that strikes the foot is the wrong width. Stop.
A bartack on an industrial machine is a different head. This page is the domestic stitch or the hand version.