I hate PB so I would care less if it went rancid. But I would have taken that bad PB and added some bird seed to it and set it out for the birds.
Too late, you tossed it in the garbage.
And it's fun to watch the dog's tongue try to lick out the empty jar. Give your dog an empty jar of pb and they will love you forever.