A vacuum leak will cause an extra high idle rpm, that is not your problem. What is likely causing this issue is a part of the throttle body called the IAC (idle air controller). The IAC is what provides all (!) of the engine's air after you take your foot off of the accelerator pedal. If the engine idles ok with a little gas but doesn't idle when you lift your foot off the accelerator pedal, it's assuredly a problem with the IAC. 99.99% of the time, any problem with the IAC is strictly that it is dirty... dirty enough that it isn't letting enough air into the throttle body at idle rpms, causing a low idle or stalling.
Take a look at the below illustration and take note of the slot (idle air control passage inlet) inside the throttle body in front of the Idle Air Controller. Using an aerosol can of throttle body cleaner, start the engine and while holding the butterfly valve open with the throttle linkage, aim the spray of the cleaner at that slot and maybe you can clean it enough so the problem goes away.
Better yet, get a torx-head adapter and remove the two torx-head screws that hold the IAC to the throttle body and remove the IAC. Then, using a toothbrush, rag, and throttle body cleaner, clean the solenoid actuated shaft coming out of the IAC of all the black gunk. Clean the hole in the TB it fits into too. Be GENTLE with the shaft, don't push/pull/twist it. It's not so delicate it can't be cleaned, but just be gentle with it.
Make sure to be careful removing the screws. They are held by Locktite so they will be tight. Use firm pressure to hold the torx adapter squarely into the screw head so it can't strip out the bolt head's torx opening.