Take it back to the dealer. Since it happened to soon after buying they will prob be like uh,wtf. Plus what steve said they should be able to find out if its something easy like that.
and to keep you from stalling again at idle.. 2 feet it. one on brake one on gas and lightly hit the throttle...