bpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) (GH-21013)



Reported by Coverity.  (CID 1457554 RETURN_LOCAL)

path0 is assigned as a pointer to this right before it goes out of scope.
2 files changed