There are many things that can go wrong with a golf swing. Areas that can hurt your swing include a poor stance, a flying elbow, a weak grip and poor timing, just to name a few. Many golfers experience many of these problems from time to time in their career. You can fix them with time at the practice range.
Check your stance before you hit the ball. Your left shoulder should be facing the target and your left foot should be directly underneath your left shoulder. Your feet should be shoulder length apart. This is the correct stance in golf.
Fix your grip and make sure you are holding the club with the right pressure. You should hold the club as if it were a tube of toothpaste. You don't want to drop that tube but you don't want to squeeze out any toothpaste either. Hold the club at a "5" on a scale of 1 to 10. This will prevent the club from wobbling on contact with the ball and will help you keep the ball straight.
Keep your right elbow close to your body when you swing. Unlike your left elbow, your right elbow will bend during the backswing and the followthrough. However, that elbow should not fly away from your side. It should stay relatively close if you want to hit an accurate shot.
Try to swing smoothly and evenly and don't succumb to the pressure of trying to hit the ball as hard as you can. This is difficult to do but it is essential if you want the correct timing in your swing. Rotate your hips to the right to begin your backswing and let your hips follow. Bring your hips back through the ball in the opposite direction and let your hands follow at the same speed. Increasing the speed that your hit the ball will make it difficult -- if not impossible -- to hit an accurate shot.
Make sure you make square contact with the ball. The club head needs to hit the ball at 90 degree angle. If you hook the club head to the left, you will not hit a straight shot. If you push the club head out to the right, your shot will veer that way.
Tips & Warnings
Practice 2 or 3 times a week at the driving range. This will help you work kinks and mistakes out of your swing.
Consider lessons or using a golfing app if you feel you need more help in your swing.