Her presence there having been dictated by the recent rash of sinkings by U-boats in the region, after taking a load of gasoline from Gulfport, Barnegat departed Rio de Janeiro on 17 July 1943 for Florianópolis, Brazil, less than 500 nautical miles in a straight-line distance from Rio de Janeiro, as part of the temporary measures to meet the U-boat threat.