The Giants released veteran right-hander Jeff Samardzija a day after he returned from a lengthy shoulder injury and rehab.