 Despite the conduct of their commanding general , both the Spanish success at Almanza Creek and Graham 's actions at Barrosa Ridge gave a much needed boost to Spanish morale . La Peña was subsequently arraigned for court @-@ martial , mainly for his refusal to pursue the retreating French , where he was acquitted but relieved of command . At a time when Anglo @-@ Spanish relations were already strained , Graham 's criticism of his Spanish allies meant that it was no longer politic for him to remain in Cádiz , so he was transferred to Wellington 's main army . 
