The Giants have agreed to a new two-year contract with left-handed reliever Javier Lopez, according to a person with knowledge of the situation. Lopez -- one of baseball's most reliable lefties out of the bullpen -- had been set to become a free agent before receiving a new deal. He will earn $4.25 million in 2012 and 2013.