what causes car to stall after starting and when taking foot off of gas on 1999 Buick Century

problem is all the time, just started and when you start the car will not start unless gas pedal is pressed and when you leave up on gas pedal it stalls

Asked by for the 1999 Buick Century
Check engine light on? Have mass air flow sensor tested.