What could be the problem if your car starts but turns off when you put it in drive?

possibly a problem with the torque converter locking up, or could be something as simple as a vacuum leak