onstar engine problem on 2001 Cadillac DeVille DTS

the check light stays on. Had diagnostic test at GM garage, it coded PO 171 and PO 172; meaning leaking head gaskets and leaking intake manifold. Car never has overheated and have added very little antifreeze. Two other tests run and they both coded PO 171 and PO 174.Noticeable surge with small miss at idle speed.Have 94,000 miles,would like to keep. Any help would be appreciated.

Asked by for the 2001 Cadillac DeVille DTS
Codes P0171 and P0174 on your 2001 Cadillac Deville are for a lean running engine. While this commonly indicates an engine vacuum leak, that does automatically mean head gaskets or intake manifold. One common case of a vacuum leak on this engine would be the seal between the intake manifold and the throttle body. Please review this RepairPal article for more information on these fault codes -
I have a vacuum leak on my 2001 Cadillac Deville is it OK for me to drive local around town with this? The car can run for so long and then smoke a little from the motor.