fix a use-after free in MemoryLocations
fix a use-after free in MemoryLocations

rdar://75441030

gregomni/swift,JGiola/swift,benlangmuir/swift,gregomni/swift,hooman/swift,apple/swift,benlangmuir/swift,parkera/swift,atrick/swift,xwu/swift,glessard/swift,xwu/swift,parkera/swift,hooman/swift,rudkx/swift,JGiola/swift,glessard/swift,glessard/swift,roambotics/swift,glessard/swift,rudkx/swift,ahoppen/swift,ahoppen/swift,ahoppen/swift,hooman/swift,parkera/swift,JGiola/swift,rudkx/swift,gregomni/swift,apple/swift,xwu/swift,benlangmuir/swift,parkera/swift,rudkx/swift,JGiola/swift,roambotics/swift,tkremenek/swift,gregomni/swift,atrick/swift,xwu/swift,apple/swift,ahoppen/swift,ahoppen/swift,atrick/swift,rudkx/swift,JGiola/swift,roambotics/swift,rudkx/swift,hooman/swift,apple/swift,hooman/swift,glessard/swift,xwu/swift,tkremenek/swift,atrick/swift,hooman/swift,tkremenek/swift,parkera/swift,ahoppen/swift,tkremenek/swift,tkremenek/swift,roambotics/swift,parkera/swift,apple/swift,tkremenek/swift,benlangmuir/swift,roambotics/swift,JGiola/swift,roambotics/swift,xwu/swift,benlangmuir/swift,gregomni/swift,gregomni/swift,benlangmuir/swift,hooman/swift,parkera/swift,atrick/swift,tkremenek/swift,glessard/swift,parkera/swift,xwu/swift,apple/swift,atrick/swift