A common misconception: John Thornton does not kill Dave, the exhausted lead sled dog. The culprit is Hal, the cruel, incompetent musher who buys the team.
Hal, his sister Mercedes, and brother Charles overload the sled, ignore warnings about spring thaw, and force the dogs across thin ice. When Dave collapses in harness—unable to pull another step—Hal doesn't shoot him mercifully. He whips him, demanding the impossible. The strain and brutality kill Dave in the traces.
Thornton, introduced later, rescues Buck from Hal's cruelty, threatening him with a club. He becomes Buck's true master—the antithesis of Hal.
Dave's death is a indictment of human stupidity and cruelty, not an act of the novel's moral center.