Hold and a Loss?

Eddie Guardado got a Hold and a Loss in the same game yesterday. Im confused how you can get both in the same game? I thought the hold was not relinquishing the lead and of course a loss would be doing just that…thoughts?

He got the hold because he didn’t blow the lead. C.J. Wilson blew the lead on Quentin’s HR and got the blown save. He got the loss because the 2 runners on when Quentin homered was his.

but the runs that were on base would be his right? Or is it just when he is actually pitching?

Any runner that gets one base (without error) that scores gets charged to him even when he gets relieved. If Guardado had stayed in and gave up the HR to Quentin, he would not have gotten the Hold, but would get the Loss and Blown Save.